/* ══════════════════════════════════════════════════
   getXplain.ai Help Center — page-specific styles
   ══════════════════════════════════════════════════
   Brand tokens, fonts, footer, theme toggle, and the
   starfield canvas all come from style.css. Anything
   below is unique to /help: the hero band, FAQ
   accordion, contact rail, and founder cards.
   ══════════════════════════════════════════════════ */

/* ── Help hero band ─────────────────────────────── */
.help-hero {
    position: relative;
    padding: 5.5rem 0 3.5rem;
    overflow: hidden;
}
.help-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 22% 35%, rgba(123,77,255,.22) 0%, transparent 60%),
        radial-gradient(50% 50% at 82% 70%, rgba(245,166,35,.14) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.help-hero .container-xl { position: relative; z-index: 1; }

.help-hero h1 {
    font-family: var(--font-h);
    font-size: clamp(2.2rem, 4.4vw, 3.8rem);
    font-weight: 900;
    color: #fff;
    margin: 1rem 0 1.25rem;
    line-height: 1.12;
    text-align: center;
}
.help-hero p.lead {
    color: rgba(255,255,255,.7);
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.75;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.help-hero .eyebrow-row {
    display: flex;
    justify-content: center;
    margin-bottom: .5rem;
}

/* Quick-jump chips (FAQ / Contact) */
.help-jump {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 2rem;
}
.help-jump a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem 1.1rem;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    transition: background .25s ease, border-color .25s ease, transform .2s ease;
}
.help-jump a:hover {
    background: rgba(123,77,255,.15);
    border-color: rgba(123,77,255,.45);
    transform: translateY(-1px);
}
.help-jump a svg { opacity: .85; }

/* ══════════════════════════════════════════════════
   FAQ accordion
   ══════════════════════════════════════════════════ */
.faq-section {
    position: relative;
    padding: 1rem 0 5rem;
}
.faq-wrap {
    max-width: 880px;
    margin: 0 auto;
}
.faq-category {
    margin-top: 3rem;
}
.faq-category:first-of-type { margin-top: 0; }

.faq-category-label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-h);
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--purple);
    margin-bottom: 1.1rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: rgba(123,77,255,.12);
    border: 1px solid rgba(123,77,255,.3);
}
.faq-category-label svg { width: 14px; height: 14px; }

.faq-item {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    margin-bottom: .9rem;
    overflow: hidden;
    transition: border-color .25s ease, background .25s ease;
}
.faq-item:hover { border-color: rgba(123,77,255,.35); }
.faq-item[open] {
    background: rgba(123,77,255,.06);
    border-color: rgba(123,77,255,.4);
}

.faq-q {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 1.02rem;
    color: #fff;
    user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ""; }

.faq-q .chev {
    width: 20px; height: 20px;
    flex-shrink: 0;
    margin-left: auto;
    color: var(--purple);
    transition: transform .25s ease;
}
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }

.faq-icon {
    width: 32px; height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(123,77,255,.25), rgba(123,77,255,.05));
    border: 1px solid rgba(123,77,255,.35);
    display: flex; align-items: center; justify-content: center;
    color: #C4B0FF;
}
.faq-icon svg { width: 16px; height: 16px; }

.faq-a {
    padding: 0 1.4rem 1.3rem 4.0rem;
    color: rgba(255,255,255,.78);
    font-size: .97rem;
    line-height: 1.75;
}
.faq-a p { margin-bottom: .65rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a strong { color: #fff; }
.faq-a a {
    color: var(--purple);
    text-decoration: none;
    border-bottom: 1px dashed rgba(123,77,255,.45);
    transition: color .2s ease, border-color .2s ease;
}
.faq-a a:hover { color: #C4B0FF; border-bottom-color: #C4B0FF; }
.faq-a ul {
    margin: .25rem 0 .5rem 1.1rem;
    padding: 0;
}
.faq-a li { margin: .25rem 0; }

/* ══════════════════════════════════════════════════
   Contact section
   ══════════════════════════════════════════════════ */
.contact-section {
    position: relative;
    padding: 4rem 0 5rem;
    overflow: hidden;
}
.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(55% 55% at 80% 25%, rgba(123,77,255,.18) 0%, transparent 60%),
        radial-gradient(45% 45% at 15% 80%, rgba(245,166,35,.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.contact-section .container-xl { position: relative; z-index: 1; }

.contact-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.contact-head .section-label { color: var(--purple); }
.contact-head .section-title { margin: .75rem 0 1rem; }
.contact-head p {
    color: rgba(255,255,255,.7);
    font-size: 1.02rem;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 760px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.founder-card {
    position: relative;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 26px;
    padding: 2rem 1.6rem 1.6rem;
    backdrop-filter: blur(14px);
    text-align: center;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}
.founder-card:hover {
    transform: translateY(-6px);
    border-color: rgba(123,77,255,.35);
    box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.founder-card .portrait {
    width: 130px; height: 130px;
    border-radius: 50%;
    margin: 0 auto 1.1rem;
    padding: 4px;
    background: linear-gradient(135deg, var(--purple), var(--orange));
}
.founder-card .portrait > div {
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #0B0820;
}
.founder-card .portrait img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 24%;
    display: block;
}
.founder-card.mohamed .portrait img { object-position: center 10%; }

.founder-card .name {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: .35rem;
}
.founder-card .role {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    padding: .3rem .8rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}
.founder-card.tarek .role {
    background: rgba(123,77,255,.15);
    border: 1px solid rgba(123,77,255,.4);
    color: #C4ABFF;
}
.founder-card.mohamed .role {
    background: rgba(245,166,35,.13);
    border: 1px solid rgba(245,166,35,.4);
    color: #FFCC80;
}
.founder-card .email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #7B4DFF 0%, #5A2EE0 100%);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(123,77,255,.25);
    transition: transform .2s ease, box-shadow .2s ease;
    margin-top: auto;
}
.founder-card .email-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 12px 26px rgba(123,77,255,.45);
}
.founder-card .email-btn svg { width: 16px; height: 16px; }

/* ── WhatsApp panel ─────────────────────────────── */
.whatsapp-panel {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.6rem 1.8rem;
    border-radius: 22px;
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.32);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.whatsapp-panel .wp-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.whatsapp-panel .wp-icon svg { width: 26px; height: 26px; }
.whatsapp-panel .wp-text {
    flex: 1; min-width: 200px;
}
.whatsapp-panel .wp-label {
    font-family: var(--font-h);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #5EEAD4;
    margin-bottom: .3rem;
}
.whatsapp-panel .wp-number {
    font-family: var(--font-h);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .02em;
}
.whatsapp-panel .wp-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.2rem;
    border-radius: 999px;
    background: #25D366;
    color: #042F1A;
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-panel .wp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37,211,102,.45);
    color: #042F1A;
}

/* ══════════════════════════════════════════════════
   LIGHT THEME — overrides
   ══════════════════════════════════════════════════ */
[data-theme="light"] .help-hero h1 { color: #110D2B; }
[data-theme="light"] .help-hero p.lead { color: #3D3760; }

[data-theme="light"] .help-jump a {
    background: rgba(123,77,255,.05);
    border-color: rgba(123,77,255,.18);
    color: #2C234D;
}
[data-theme="light"] .help-jump a:hover {
    background: rgba(123,77,255,.1);
    border-color: rgba(123,77,255,.4);
}

[data-theme="light"] .faq-item {
    background: #fff;
    border-color: rgba(123,77,255,.14);
    box-shadow: 0 4px 18px rgba(123,77,255,.05);
}
[data-theme="light"] .faq-item:hover { border-color: rgba(123,77,255,.32); }
[data-theme="light"] .faq-item[open] {
    background: rgba(123,77,255,.04);
    border-color: rgba(123,77,255,.4);
}
[data-theme="light"] .faq-q { color: #110D2B; }
[data-theme="light"] .faq-a { color: #3D3760; }
[data-theme="light"] .faq-a strong { color: #110D2B; }

[data-theme="light"] .faq-icon {
    background: linear-gradient(135deg, rgba(123,77,255,.12), rgba(123,77,255,.02));
    color: #5A2EE0;
}

[data-theme="light"] .faq-category-label {
    background: rgba(123,77,255,.08);
    color: #5A2EE0;
}

[data-theme="light"] .contact-head p { color: #3D3760; }
[data-theme="light"] .founder-card {
    background: #fff;
    border-color: rgba(123,77,255,.14);
    box-shadow: 0 4px 18px rgba(123,77,255,.05);
    backdrop-filter: none;
}
[data-theme="light"] .founder-card:hover {
    border-color: rgba(123,77,255,.32);
    box-shadow: 0 24px 50px rgba(123,77,255,.12);
}
[data-theme="light"] .founder-card .name { color: #110D2B; }
[data-theme="light"] .founder-card.tarek .role {
    background: rgba(123,77,255,.1); color: #5A2EE0; border-color: rgba(123,77,255,.25);
}
[data-theme="light"] .founder-card.mohamed .role {
    background: rgba(245,166,35,.1); color: #B45309; border-color: rgba(245,166,35,.3);
}
[data-theme="light"] .founder-card .portrait > div { background: #F4F0FF; }

[data-theme="light"] .whatsapp-panel {
    background: rgba(16,185,129,.08);
    border-color: rgba(16,185,129,.32);
}
[data-theme="light"] .whatsapp-panel .wp-label { color: #047857; }
[data-theme="light"] .whatsapp-panel .wp-number { color: #110D2B; }
