/* ==========================================================================
   PRLinkUp — FAQ & help centre
   (Accordion items reuse .faq-item from home-final.css)
   ========================================================================== */

.fhero__title em,
.fhero__title em .split-word,
.fhelp__title em {
    font-style: italic;
    background-image: linear-gradient(100deg, #5B3FF0 0%, #7A5DFF 35%, #B06AF8 70%, #E879F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.fhero__title em .split-word {
    padding-right: 0.06em;
}

.fhelp__title em {
    background-image: linear-gradient(100deg, #C4B5FF 0%, #E9D5FF 50%, #F5B5FC 100%);
    padding-right: 0.06em;
}

/* ==========================================================================
   Hero + search
   ========================================================================== */
.fhero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--header-h) + 3.5rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem);
    background: #F7F5FF;
}

.fhero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.fhero__glow {
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(110px);
}

.fhero__glow--a {
    top: -30%;
    left: 10%;
    width: 45vw;
    background: #B4A3FF;
    opacity: 0.5;
    animation: drift-1 28s var(--ease-soft) infinite;
}

.fhero__glow--b {
    right: 0;
    bottom: -40%;
    width: 40vw;
    background: #F5B5FC;
    opacity: 0.45;
    animation: drift-2 32s var(--ease-soft) infinite;
}

/* Giant outlined question marks */
.fhero__q {
    position: absolute;
    font-size: clamp(14rem, 10rem + 14vw, 26rem);
    font-weight: var(--fw-black);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(122, 93, 255, 0.12);
    animation: float 9s ease-in-out infinite;
}

.fhero__q--a {
    top: -8%;
    left: -2%;
    rotate: -14deg;
}

.fhero__q--b {
    right: -1%;
    bottom: -30%;
    rotate: 12deg;
    animation-delay: -4s;
}

.fhero .grain {
    opacity: 0.06;
}

.fhero__inner {
    display: grid;
    justify-items: center;
    text-align: center;
}

.fhero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 1px rgba(122, 93, 255, 0.14);
    color: var(--violet-650);
    font-size: 13px;
    font-weight: var(--fw-semi);
}

.fhero__title {
    margin-top: clamp(1rem, 3vh, 1.5rem);
    font-size: clamp(2.8rem, 1rem + 5.4vw, 6.2rem);
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -0.055em;
    color: var(--ink-950);
}

.fhero__lead {
    margin-top: 16px;
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.15rem);
    color: var(--ink-600);
}

.fsearch {
    position: relative;
    display: flex;
    align-items: center;
    width: min(680px, 100%);
    margin-top: clamp(1.75rem, 4vh, 2.5rem);
    padding: 8px 10px 8px 20px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 24px 60px -24px rgba(74, 47, 217, 0.45), inset 0 0 0 1px rgba(122, 93, 255, 0.14);
    transition: box-shadow 0.3s;
}

.fsearch:focus-within {
    box-shadow: 0 24px 60px -24px rgba(74, 47, 217, 0.55), inset 0 0 0 2px var(--violet-400);
}

.fsearch__icon {
    flex-shrink: 0;
    color: var(--violet-500);
    font-size: 22px;
}

.fsearch input {
    flex: 1;
    min-width: 0;
    padding: 14px 12px;
    border: 0;
    background: none;
    color: var(--ink-950);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    font-weight: var(--fw-medium);
    outline: none;
}

.fsearch input::-webkit-search-cancel-button {
    display: none;
}

.fsearch__kbd {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--gray-100);
    box-shadow: inset 0 -2px 0 var(--gray-200);
    color: var(--ink-600);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: var(--fw-semi);
}

.fsearch__clear {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--ink-900);
}

.fsearch__clear[hidden],
.fsearch.has-value .fsearch__kbd {
    display: none;
}

.fquick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--ink-600);
}

.fquick__chip {
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px var(--color-border);
    color: var(--ink-900);
    font-weight: var(--fw-semi);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.fquick__chip:hover,
.fquick__chip.is-on {
    background: var(--ink-950);
    box-shadow: none;
    color: var(--white);
}

/* ==========================================================================
   Body: categories + groups
   ========================================================================== */
.fbody {
    padding-block: clamp(3rem, 2rem + 3vw, 5rem) clamp(5rem, 4rem + 4vw, 7rem);
    background: var(--white);
}

.fbody__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 5rem);
}

/* Full-height column so the nav inside has room to stick */
.fcats {
    align-self: stretch;
}

.fcats__sticky {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: grid;
    gap: 4px;
}

.fcats__label {
    padding: 0 12px 10px;
    font-size: 12px;
    font-weight: var(--fw-semi);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-400);
}

.fcat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    color: var(--ink-600);
    font-size: 14.5px;
    font-weight: var(--fw-semi);
    transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}

.fcat i {
    color: var(--ink-400);
    font-size: 18px;
    transition: color 0.3s;
}

.fcat span {
    flex: 1;
}

.fcat b {
    min-width: 26px;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    background: var(--gray-100);
    font-size: 12px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.fcat:hover {
    background: var(--gray-50);
    color: var(--ink-950);
}

.fcat.is-active {
    background: var(--violet-100);
    color: var(--violet-650);
}

.fcat.is-active i {
    color: var(--violet-500);
}

.fcat.is-active b {
    background: var(--grad-primary);
    color: var(--white);
}

.fcat.is-empty {
    opacity: 0.4;
}

.fstatus {
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: var(--fw-medium);
    color: var(--ink-600);
}

.fgroup {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.fgroup + .fgroup {
    margin-top: clamp(2.5rem, 6vh, 3.5rem);
}

.fgroup[hidden] {
    display: none;
}

.fgroup__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem);
    font-weight: var(--fw-black);
    letter-spacing: -0.035em;
}

.fgroup__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--grad-primary);
    color: var(--white);
    font-size: 20px;
    box-shadow: 0 10px 22px -8px rgba(122, 93, 255, 0.55);
}

.fbody .faq-item {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.fbody .faq-item[hidden] {
    display: none;
}

.fbody .faq-item__text {
    font-size: clamp(1.05rem, 0.92rem + 0.5vw, 1.3rem);
}

.fbody .faq-item.is-target {
    animation: target-flash 1.6s var(--ease-out);
}

@keyframes target-flash {
    0%, 40% { background: var(--violet-100); }
    100%    { background: transparent; }
}

mark.fmark {
    padding: 0 2px;
    border-radius: 4px;
    background: #FDE68A;
    color: inherit;
}

.fcopy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: -0.5rem 0 1.5rem 64px;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1px var(--color-border);
    color: var(--ink-600);
    font-size: 12.5px;
    font-weight: var(--fw-semi);
    transition: background-color 0.3s, color 0.3s;
}

.fcopy:hover {
    background: var(--gray-50);
    color: var(--ink-950);
}

.fcopy.is-copied {
    background: var(--success-soft);
    box-shadow: none;
    color: #067A40;
}

.fempty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 4rem 1rem;
    border-radius: 28px;
    background: #F7F5FF;
    text-align: center;
}

.fempty[hidden] {
    display: none;
}

.fempty__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    color: var(--violet-500);
    font-size: 28px;
    box-shadow: var(--shadow-sm);
}

.fempty b {
    font-size: 20px;
    font-weight: var(--fw-bold);
}

.fempty p {
    max-width: 36ch;
    margin-bottom: 10px;
    color: var(--ink-600);
}

@media (max-width: 1023px) {
    .fbody__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Categories become a sticky, swipeable chip row */
    .fcats {
        position: sticky;
        top: calc(var(--header-h) - 4px);
        z-index: 5;
        margin-inline: calc(var(--gutter) * -1);
        padding: 10px var(--gutter);
        background: rgba(255, 255, 255, 0.9);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--color-border);
    }

    .fcats__sticky {
        position: static;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .fcats__sticky::-webkit-scrollbar {
        display: none;
    }

    .fcats__label {
        display: none;
    }

    .fcat {
        flex-shrink: 0;
        padding: 8px 12px;
        box-shadow: inset 0 0 0 1px var(--color-border);
        font-size: 13.5px;
        white-space: nowrap;
    }

    .fcat span {
        flex: none;
    }

    .fcat.is-active {
        box-shadow: none;
    }
}

@media (max-width: 600px) {
    .fhero__q {
        display: none;
    }

    .fsearch__kbd {
        display: none;
    }

    .fcopy {
        margin-left: 46px;
    }
}

/* ==========================================================================
   Still need help
   ========================================================================== */
.fhelp {
    padding-bottom: clamp(4rem, 3rem + 4vw, 7rem);
    background: var(--white);
}

.fhelp__panel {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    padding: clamp(2rem, 4vw, 4rem);
    border-radius: 36px;
    overflow: hidden;
    background: var(--grad-royal);
    color: var(--white);
}

.fhelp__panel::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    z-index: -1;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #E879F9;
    filter: blur(100px);
    opacity: 0.3;
}

.fhelp__copy .sec-meta__index {
    color: var(--lavender);
    font-size: 13px;
}

.fhelp__title {
    margin-top: 12px;
    font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem);
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--white);
}

.fhelp__copy p {
    max-width: 40ch;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.fhelp__cards {
    display: grid;
    gap: 10px;
}

.fhelp__card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "icon title go"
        "icon text go";
    align-items: center;
    column-gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    color: var(--white);
    transition: background-color 0.4s, color 0.4s;
}

.fhelp__card:hover {
    background: var(--white);
    color: var(--ink-950);
}

.fhelp__card > span {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--grad-primary);
    color: var(--white);
    font-size: 21px;
}

.fhelp__card b {
    grid-area: title;
    font-weight: var(--fw-bold);
}

.fhelp__card small {
    grid-area: text;
    overflow: hidden;
    font-size: 13px;
    opacity: 0.75;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fhelp__go {
    grid-area: go;
    font-size: 18px;
    transition: rotate 0.5s var(--ease-out);
}

.fhelp__card:hover .fhelp__go {
    rotate: 45deg;
}

@media (max-width: 900px) {
    .fhelp__panel {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 28px;
    }
}
