/* =====================================
   FAQ BASE
===================================== */

.faq-shell {
    width:
        min(
            calc(100% - 80px),
            1080px
        );

    margin: 0 auto;
}


.faq-section {
    padding:
        125px 0;

    background: #09070f;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.035);
}


.faq-alt-section {
    background: #0b0810;
}



/* =====================================
   HERO
===================================== */

.faq-hero {
    position: relative;

    overflow: hidden;

    padding:
        175px 0
        115px;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(120, 63, 169, 0.17),
            transparent 38%
        ),
        #09070f;

    text-align: center;
}


.faq-hero-glow {
    position: absolute;

    top: -230px;
    left: 50%;

    width: 900px;
    height: 500px;

    transform:
        translateX(-50%);

    background:
        radial-gradient(
            ellipse,
            rgba(145, 79, 198, 0.15),
            transparent 68%
        );

    pointer-events: none;
}


.faq-hero-inner {
    position: relative;

    z-index: 2;

    max-width: 900px;
}


.faq-hero h1 {
    margin: 0;

    font-size:
        clamp(
            58px,
            6vw,
            88px
        );

    line-height: 0.99;

    letter-spacing: -0.055em;

    font-weight: 500;
}


.faq-hero h1 span {
    display: block;

    color: #c8afe1;
}


.faq-hero-copy {
    max-width: 720px;

    margin:
        29px auto
        0;

    color: #9a909e;

    font-size: 19px;

    line-height: 1.72;
}



/* =====================================
   CATEGORY NAV
===================================== */

.faq-nav-section {
    position: sticky;

    top: 72px;

    z-index: 20;

    padding:
        15px 0;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.04);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.05);

    background:
        rgba(9, 7, 15, 0.92);

    backdrop-filter:
        blur(18px);
}


.faq-nav {
    display: flex;

    gap: 8px;

    overflow-x: auto;

    padding-bottom: 2px;

    scrollbar-width: none;
}


.faq-nav::-webkit-scrollbar {
    display: none;
}


.faq-nav a {
    flex:
        0 0 auto;

    padding:
        9px 13px;

    border:
        1px solid
        rgba(145, 88, 190, 0.15);

    border-radius: 20px;

    color: #9a909f;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}


.faq-nav a:hover {
    border-color:
        rgba(166, 101, 215, 0.40);

    background:
        rgba(105, 58, 145, 0.08);

    color: #d1c7d6;
}



/* =====================================
   SECTION HEADINGS
===================================== */

.faq-section-heading {
    max-width: 680px;

    margin-bottom: 50px;
}


.faq-section-heading h2 {
    margin: 0;

    font-size:
        clamp(
            44px,
            4.8vw,
            67px
        );

    line-height: 1.03;

    letter-spacing: -0.045em;

    font-weight: 500;
}


.faq-section-heading h2 span {
    display: block;

    color: #c7afe0;
}



/* =====================================
   ACCORDION
===================================== */

.faq-list {
    border-top:
        1px solid
        rgba(255, 255, 255, 0.065);
}


.faq-list details {
    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.065);
}


.faq-list summary {
    position: relative;

    padding:
        27px 55px
        27px 0;

    color: #d7d0da;

    font-size: 20px;

    line-height: 1.45;

    font-weight: 550;

    cursor: pointer;

    list-style: none;

    transition:
        color 0.2s ease;
}


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


.faq-list summary::after {
    content: "+";

    position: absolute;

    top: 50%;
    right: 4px;

    transform:
        translateY(-50%);

    color: #9b69ba;

    font-size: 26px;

    font-weight: 300;
}


.faq-list details[open] summary {
    color: #eee9f0;
}


.faq-list details[open] summary::after {
    content: "−";
}


.faq-list summary:hover {
    color: #f0ebf2;
}


.faq-answer {
    max-width: 850px;

    padding:
        0 55px
        28px 0;
}


.faq-answer p {
    margin:
        0 0
        15px;

    color: #948b99;

    font-size: 17px;

    line-height: 1.75;
}


.faq-answer p:last-child {
    margin-bottom: 0;
}


.faq-answer a {
    color: #b77cdb;

    font-weight: 600;
}



/* =====================================
   FINAL
===================================== */

.faq-final {
    padding:
        145px 0;

    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(111, 54, 163, 0.30),
            transparent 53%
        ),
        #09060e;

    text-align: center;
}


.faq-final-inner {
    max-width: 900px;
}


.faq-final-inner h2 {
    margin: 0;

    font-size:
        clamp(
            46px,
            5vw,
            72px
        );

    line-height: 1.03;

    letter-spacing: -0.045em;

    font-weight: 500;
}


.faq-final-inner h2 span {
    display: block;

    color: #c7afe0;
}


.faq-final-inner > p:not(.eyebrow) {
    max-width: 680px;

    margin:
        25px auto
        0;

    color: #958b99;

    font-size: 18px;

    line-height: 1.7;
}


.faq-final-actions {
    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 34px;
}



/* =====================================
   SCROLL POSITION
===================================== */

.faq-section {
    scroll-margin-top: 130px;
}



/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 850px) {

    .faq-shell {
        width:
            calc(100% - 40px);
    }


    .faq-section {
        padding:
            100px 0;
    }


    .faq-nav-section {
        top: 66px;
    }

}


@media (max-width: 600px) {

    .faq-shell {
        width:
            calc(100% - 28px);
    }


    .faq-hero {
        padding:
            125px 0
            85px;
    }


    .faq-hero h1 {
        font-size: 50px;
    }


    .faq-nav-section {
        top: 60px;
    }


    .faq-section-heading {
        margin-bottom: 35px;
    }


    .faq-section-heading h2,
    .faq-final-inner h2 {
        font-size: 42px;
    }


    .faq-list summary {
        padding:
            23px 45px
            23px 0;

        font-size: 18px;
    }


    .faq-answer {
        padding:
            0 0
            24px;
    }


    .faq-answer p {
        font-size: 16px;
    }


    .faq-final {
        padding:
            110px 0;
    }

}
/* =====================================
   MOBILE HORIZONTAL OVERFLOW FIX
===================================== */

/*
   Never allow the FAQ page itself to move sideways.
   Horizontal scrolling should happen only inside
   the category navigation.
*/

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}


main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}


/* Keep all FAQ content inside the viewport */

.faq-hero,
.faq-nav-section,
.faq-section,
.faq-final {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}


.faq-shell {
    max-width: 100%;
    box-sizing: border-box;
}


.faq-section-heading,
.faq-list,
.faq-list details,
.faq-list summary,
.faq-answer {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}


/* =====================================
   CATEGORY MENU
===================================== */

.faq-nav-section .faq-shell {
    overflow: hidden;
}


.faq-nav {
    width: 100%;
    max-width: 100%;

    display: flex;

    flex-wrap: nowrap;

    gap: 8px;

    overflow-x: auto;
    overflow-y: hidden;

    box-sizing: border-box;

    padding:
        2px 2px
        6px;

    -webkit-overflow-scrolling: touch;

    overscroll-behavior-x: contain;

    scrollbar-width: none;
}


.faq-nav::-webkit-scrollbar {
    display: none;
}


.faq-nav a {
    flex:
        0 0 auto;

    white-space: nowrap;
}


/*
   Give the first and last buttons a little breathing room
   so they do not appear clipped when scrolled fully
   left or right.
*/

.faq-nav a:first-child {
    margin-left: 1px;
}


.faq-nav a:last-child {
    margin-right: 8px;
}


/* =====================================
   MOBILE TEXT SAFETY
===================================== */

@media (max-width: 600px) {

    .faq-shell {
        width:
            calc(100% - 28px);

        max-width:
            calc(100% - 28px);

        margin-left: auto;
        margin-right: auto;
    }


    /*
       Navigation gets slightly wider than the page copy
       so the buttons have comfortable scrolling space.
    */

    .faq-nav-section .faq-shell {
        width: 100%;
        max-width: 100%;

        padding-left: 14px;
        padding-right: 14px;

        box-sizing: border-box;
    }


    .faq-nav {
        padding-left: 0;
        padding-right: 0;
    }


    .faq-section-heading {
        width: 100%;
    }


    .faq-section-heading h2 {
        max-width: 100%;

        overflow-wrap: normal;
        word-break: normal;
    }


    .faq-list summary {
        width: 100%;
        max-width: 100%;

        padding:
            23px 44px
            23px 0;

        overflow-wrap: break-word;
        word-break: normal;
    }


    .faq-answer {
        width: 100%;
        max-width: 100%;

        padding:
            0 0
            24px;
    }


    .faq-answer p {
        max-width: 100%;

        overflow-wrap: break-word;
        word-break: normal;
    }

}