/* FAQ — Central de Ajuda OTOH */
.otoh-faq-page {
    background: #f1f5f9;
    min-height: 100vh;
}

.otoh-faq-stage {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

.otoh-faq-views {
    position: relative;
    min-height: 120px;
}

/* ——— Views ——— */
.otoh-faq-view {
    display: none;
}
.otoh-faq-view.is-active {
    display: block;
    animation: faqFadeIn 0.28s ease-out both;
}
.otoh-faq-view[hidden] {
    display: none !important;
    animation: none;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ——— Banner FAQ ——— */
.otoh-faq-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 48px clamp(20px, 4vw, 48px) 64px;
    margin-bottom: 8px;
    background: linear-gradient(145deg, #0A192F 0%, #112240 50%, #1e293b 100%);
    color: #fff;
}

.otoh-faq-banner__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.otoh-faq-banner__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 85% 20%, rgba(255, 215, 0, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 10% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

.otoh-faq-banner__grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.otoh-faq-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.otoh-faq-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 8px;
    margin-bottom: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.otoh-faq-banner__eyebrow i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--yellow, #FFD700);
    color: var(--navy, #0A192F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.otoh-faq-banner__content h1 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 900;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.otoh-faq-banner__content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.78;
    font-weight: 500;
}

.otoh-faq-banner__search {
    flex: 1;
    min-width: 260px;
    max-width: 420px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.otoh-faq-banner__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 32' preserveAspectRatio='none'%3E%3Cpath fill='%23f1f5f9' d='M0 32V14c120-8 240-14 360-14s240 6 360 14 240 14 360 14 360-6 540-14V32H0z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

/* Topo legado (detalhe interno) */
.otoh-faq-top {
    background: linear-gradient(135deg, var(--navy, #0A192F), #112240);
    color: #fff;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(10, 25, 47, 0.12);
}
.otoh-faq-top__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.otoh-faq-top__title h1 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.otoh-faq-top__title h1 i { color: var(--yellow, #FFD700); font-size: 16px; }
.otoh-faq-top__title p {
    margin: 0;
    font-size: 11px;
    opacity: 0.75;
    font-weight: 600;
}

.otoh-faq-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 220px;
    max-width: 400px;
    padding: 3px 3px 3px 12px;
    background: #fff;
    border-radius: 999px;
}
.otoh-faq-search i { color: #94a3b8; font-size: 13px; }
.otoh-faq-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    padding: 9px 0;
    background: transparent;
    color: var(--text-dark);
    min-width: 0;
}
.otoh-faq-search__btn {
    border: none;
    background: var(--yellow, #FFD700);
    color: var(--navy, #0A192F);
    font-weight: 800;
    font-size: 11px;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}
.otoh-faq-search__btn:hover { filter: brightness(0.95); }

/* ——— Hub cards ——— */
.otoh-faq-hub {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.otoh-faq-hub-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    padding: 16px 18px;
    cursor: pointer;
    font-family: inherit;
    margin: 0;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
}
.otoh-faq-hub-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 8px 20px rgba(0,0,0,0.08));
    border-color: #cbd5e1;
}
.otoh-faq-hub-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.otoh-faq-hub-card__text { flex: 1; min-width: 0; }
.otoh-faq-hub-card__text h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 2px;
    line-height: 1.3;
}
.otoh-faq-hub-card__text p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}
.otoh-faq-hub-card__meta {
    font-size: 11px;
    font-weight: 800;
    color: var(--navy);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* ——— View chrome ——— */
.otoh-faq-view__top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.otoh-faq-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.otoh-faq-back:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.otoh-faq-crumb {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.otoh-faq-crumb i { font-size: 8px; color: #cbd5e1; }
.otoh-faq-crumb strong { color: var(--navy); }

.otoh-faq-list-head { margin-bottom: 14px; }
.otoh-faq-list-tabs {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    background: #e2e8f0;
    border-radius: 999px;
    margin-bottom: 12px;
}
.otoh-faq-list-tabs button {
    border: none;
    background: transparent;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
}
.otoh-faq-list-tabs button.is-active {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.otoh-faq-list-head h2 {
    font-size: 20px;
    font-weight: 900;
    color: var(--navy);
    margin: 0 0 4px;
}
.otoh-faq-list-head p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ——— Lista de módulos/apps (coluna única, espaçamento uniforme) ——— */
.otoh-faq-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.otoh-faq-grid[hidden] { display: none !important; }

.otoh-faq-pick {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    margin: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm, 0 1px 4px rgba(0,0,0,0.03));
}
.otoh-faq-pick:hover {
    border-color: color-mix(in srgb, var(--pick-accent, #0284c7) 40%, #e2e8f0);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.06));
}
.otoh-faq-pick__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--pick-accent, #0284c7) 12%, white);
    color: var(--pick-accent, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.otoh-faq-pick__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.otoh-faq-pick__body h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    line-height: 1.35;
    word-wrap: break-word;
}
.otoh-faq-pick__body span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.3;
}
.otoh-faq-pick__arrow {
    color: #cbd5e1;
    font-size: 12px;
    flex-shrink: 0;
}

/* ——— Detail ——— */
.otoh-faq-detail-wrap { min-height: 160px; }
.otoh-faq-detail[hidden] { display: none !important; }

.otoh-faq-detail__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    background: linear-gradient(135deg, color-mix(in srgb, var(--faq-accent) 6%, white), white);
}
.otoh-faq-detail__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--faq-accent) 14%, white);
    color: var(--faq-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.otoh-faq-detail__head h2 {
    font-size: 18px;
    font-weight: 900;
    color: var(--navy);
    margin: 0 0 3px;
    line-height: 1.3;
}
.otoh-faq-detail__head p {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
}

.otoh-faq-detail__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.otoh-faq-q {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    overflow: hidden;
}
.otoh-faq-q[open] { border-color: #86efac; }
.otoh-faq-q.is-highlight { box-shadow: 0 0 0 3px rgba(255,215,0,0.4); }
.otoh-faq-q summary {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}
.otoh-faq-q summary::-webkit-details-marker { display: none; }
.otoh-faq-q__num {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 1px;
}
.otoh-faq-q[open] .otoh-faq-q__num { background: #d1fae5; color: #065f46; }
.otoh-faq-q__body {
    padding: 0 16px 14px 38px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-muted);
}

.otoh-faq-detail-nav {
    margin-top: 24px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.otoh-faq-detail-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    font-family: inherit;
}
.otoh-faq-detail-nav__btn:hover:not(:disabled) { background: #f8fafc; }
.otoh-faq-detail-nav__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.otoh-faq-detail-nav__btn--next { background: var(--navy); color: #fff; border-color: var(--navy); }
.otoh-faq-detail-nav__dots {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}
.otoh-faq-detail-nav__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
}
.otoh-faq-detail-nav__dots button.is-active {
    background: var(--yellow);
    transform: scale(1.25);
}

/* ——— Search ——— */
.otoh-faq-search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.otoh-faq-search-hit {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 11px;
    cursor: pointer;
    font-family: inherit;
    transition: box-shadow 0.2s;
}
.otoh-faq-search-hit:hover { box-shadow: var(--shadow-md); }
.otoh-faq-search-hit__cat {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #10b981;
    margin-bottom: 4px;
}
.otoh-faq-search-hit strong { display: block; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.otoh-faq-search-hit span { font-size: 13px; color: var(--text-muted); line-height: 1.45; }

.otoh-faq-empty {
    text-align: center;
    padding: 36px 20px;
}
.otoh-faq-empty i { font-size: 36px; color: #cbd5e1; margin-bottom: 10px; }
.otoh-faq-empty p { color: var(--text-muted); margin-bottom: 14px; }
.otoh-faq-clear {
    padding: 9px 18px;
    border: none;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

/* ——— CTA ——— */
.otoh-faq-cta {
    padding: 40px 5%;
    background: #fff;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}
.otoh-faq-cta__inner { max-width: 520px; margin: 0 auto; text-align: center; }
.otoh-faq-cta h2 { font-size: 22px; font-weight: 900; color: var(--navy); margin-bottom: 8px; }
.otoh-faq-cta p { color: var(--text-muted); margin-bottom: 20px; font-size: 14px; }
.otoh-faq-cta__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-outline-dark {
    border: 2px solid var(--navy);
    color: var(--navy);
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

@media (max-width: 640px) {
    .otoh-faq-top { padding: 14px 16px; }
    .otoh-faq-top__row { flex-direction: column; align-items: stretch; }
    .otoh-faq-search { max-width: none; }
    .otoh-faq-hub-card { flex-wrap: wrap; }
    .otoh-faq-hub-card__meta { width: 100%; padding-top: 2px; }
    .otoh-faq-pick {
        grid-template-columns: 40px 1fr auto;
        gap: 10px;
        padding: 12px 14px;
    }
}