/* =========================================================
   AVORCMS V2 — FAQ
   Enterprise FAQ / Knowledge Interface
   ========================================================= */

.v2-faq {
    --faq-purple: var(--v2-heading, #391D77);
    --faq-brand: var(--v2-logo, #5C1BB3);
    --faq-cta: var(--v2-cta, #6222D5);
    --faq-coral: var(--v2-highlight, #ff5757);
    --faq-bg: var(--v2-bg, #F8F6FA);
    --faq-ink: var(--v2-ink, #211b33);
    --faq-muted: var(--v2-subheading, #625E65);
    --faq-white: var(--v2-white, #ffffff);
    --faq-border: rgba(57, 29, 119, 0.11);

    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            var(--faq-bg) 45%,
            #ffffff 100%
        );
    padding: 120px 0 110px;
    isolation: isolate;
}

.v2-faq__grid {
    position: relative;
    z-index: 2;

    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.55fr);
    gap: clamp(55px, 7vw, 105px);
    align-items: start;
}

/* ---------------------------------------------------------
   INTRO
   --------------------------------------------------------- */

.v2-faq__intro {
    position: sticky;
    top: 105px;
}

.v2-faq__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 22px;

    color: var(--faq-brand);
    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1;
}

.v2-faq__eyebrow-line {
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: var(--faq-coral);
}

.v2-faq__title {
    max-width: 440px;
    margin: 0;

    color: var(--faq-purple);
    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: clamp(38px, 4.1vw, 58px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.v2-faq__title span {
    display: block;
    color: var(--faq-brand);
}

.v2-faq__description {
    max-width: 410px;
    margin: 26px 0 0;

    color: var(--faq-muted);
    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
}

.v2-faq__support {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 42px;
    padding-top: 27px;

    border-top: 1px solid var(--faq-border);
}

.v2-faq__support-icon {
    flex: 0 0 46px;

    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    color: var(--faq-brand);
    background: rgba(92, 27, 179, 0.07);
    border: 1px solid rgba(92, 27, 179, 0.12);
    border-radius: 14px;
}

.v2-faq__support-icon svg {
    width: 21px;
    height: 21px;
}

.v2-faq__support span {
    display: block;

    color: var(--faq-muted);
    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 12px;
    font-weight: 600;
}

.v2-faq__support a {
    display: inline-block;
    margin-top: 3px;

    color: var(--faq-purple);
    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;

    transition:
        color 220ms ease,
        transform 220ms ease;
}

.v2-faq__support a:hover {
    color: var(--faq-coral);
}

.v2-faq__response {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 17px;

    color: #817c87;
    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 11px;
    font-weight: 600;
}

.v2-faq__response-dot,
.v2-faq__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #49a873;
    box-shadow: 0 0 0 4px rgba(73, 168, 115, 0.10);
}

/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.v2-faq__content {
    min-width: 0;
}

.v2-faq__content-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 17px;
    padding: 0 5px 14px;

    border-bottom: 1px solid var(--faq-border);
}

.v2-faq__count-label {
    display: block;

    color: #8b8790;
    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.v2-faq__count {
    display: block;
    margin-top: 4px;

    color: var(--faq-muted);
    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 12px;
    font-weight: 600;
}

.v2-faq__count strong {
    color: var(--faq-purple);
    font-size: 14px;
}

.v2-faq__status {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #817c87;
    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   ACCORDION
   --------------------------------------------------------- */

.v2-faq__list {
    border-top: 1px solid var(--faq-border);
}

.v2-faq__item {
    position: relative;
    border-bottom: 1px solid var(--faq-border);
    transition:
        background-color 260ms ease,
        border-color 260ms ease;
}

.v2-faq__item.is-open {
    background: rgba(255, 255, 255, 0.82);
    border-bottom-color: rgba(92, 27, 179, 0.18);
}

.v2-faq__question {
    position: relative;

    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 17px;

    width: 100%;
    min-height: 76px;
    padding: 17px 7px;

    appearance: none;
    border: 0;
    background: transparent;

    color: inherit;
    text-align: left;
    cursor: pointer;

    font-family: inherit;
}

.v2-faq__question::before {
    content: "";

    position: absolute;
    left: -1px;
    top: 16px;
    bottom: 16px;

    width: 3px;
    border-radius: 0 4px 4px 0;

    background: var(--faq-coral);

    opacity: 0;
    transform: scaleY(0.5);
    transform-origin: center;

    transition:
        opacity 260ms ease,
        transform 260ms ease;
}

.v2-faq__item.is-open .v2-faq__question::before {
    opacity: 1;
    transform: scaleY(1);
}

.v2-faq__number {
    color: #a29ca8;

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;

    transition: color 220ms ease;
}

.v2-faq__item.is-open .v2-faq__number {
    color: var(--faq-coral);
}

.v2-faq__question-text {
    color: var(--faq-purple);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;

    transition: color 220ms ease;
}

.v2-faq__question:hover .v2-faq__question-text {
    color: var(--faq-brand);
}

.v2-faq__toggle {
    position: relative;

    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;
    margin-left: auto;

    border: 1px solid rgba(57, 29, 119, 0.13);
    border-radius: 50%;

    color: var(--faq-purple);

    transition:
        background-color 260ms ease,
        border-color 260ms ease,
        color 260ms ease,
        transform 260ms ease;
}

.v2-faq__toggle span {
    position: absolute;

    width: 12px;
    height: 1.5px;

    border-radius: 999px;
    background: currentColor;

    transition: transform 260ms ease;
}

.v2-faq__toggle span:last-child {
    transform: rotate(90deg);
}

.v2-faq__item.is-open .v2-faq__toggle {
    color: var(--faq-white);
    background: var(--faq-purple);
    border-color: var(--faq-purple);
}

.v2-faq__item.is-open .v2-faq__toggle span:last-child {
    transform: rotate(0);
}

.v2-faq__answer {
    padding: 0 66px 0 72px;
}

.v2-faq__answer-inner {
    max-width: 740px;

    padding: 0 0 26px;

    color: var(--faq-muted);
    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;

    animation: v2FaqAnswerIn 300ms ease both;
}

@keyframes v2FaqAnswerIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.v2-faq__cta {
    position: relative;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;

    margin-top: 34px;
    padding: 22px 25px;

    overflow: hidden;

    background: var(--faq-purple);
    border-radius: 20px;
    box-shadow: 0 20px 55px rgba(57, 29, 119, 0.14);
}

.v2-faq__cta::after {
    content: "";

    position: absolute;
    right: -70px;
    top: -95px;

    width: 220px;
    height: 220px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    box-shadow:
        0 0 0 28px rgba(255, 255, 255, 0.025),
        0 0 0 56px rgba(255, 255, 255, 0.018);

    pointer-events: none;
}

.v2-faq__cta-mark {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: flex-end;
    gap: 4px;

    width: 40px;
    height: 40px;
}

.v2-faq__cta-mark span {
    display: block;
    width: 5px;
    border-radius: 999px 999px 2px 2px;
    background: var(--faq-coral);
}

.v2-faq__cta-mark span:nth-child(1) {
    height: 15px;
    opacity: 0.65;
}

.v2-faq__cta-mark span:nth-child(2) {
    height: 26px;
    opacity: 0.82;
}

.v2-faq__cta-mark span:nth-child(3) {
    height: 36px;
}

.v2-faq__cta-copy {
    position: relative;
    z-index: 1;
}

.v2-faq__cta-label {
    display: block;

    margin-bottom: 3px;

    color: rgba(255, 255, 255, 0.52);
    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.v2-faq__cta-copy strong {
    display: block;

    color: #fff;
    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 17px;
    font-weight: 800;
}

.v2-faq__cta-copy p {
    margin: 3px 0 0;

    color: rgba(255, 255, 255, 0.65);
    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 11px;
    font-weight: 500;
}

.v2-faq__cta-button {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 44px;
    padding: 0 18px;

    color: #fff;
    background: var(--faq-coral);

    border-radius: 10px;

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        background-color 220ms ease;
}

.v2-faq__cta-button svg {
    width: 17px;
    height: 17px;

    transition: transform 220ms ease;
}

.v2-faq__cta-button:hover {
    background: #ff6868;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.v2-faq__cta-button:hover svg {
    transform: translateX(3px);
}

/* ---------------------------------------------------------
   DECORATION
   --------------------------------------------------------- */

.v2-faq__orb {
    position: absolute;
    z-index: 0;

    border: 1px solid rgba(92, 27, 179, 0.06);
    border-radius: 50%;

    pointer-events: none;
}

.v2-faq__orb--one {
    width: 390px;
    height: 390px;

    left: -260px;
    top: 160px;
}

.v2-faq__orb--two {
    width: 500px;
    height: 500px;

    right: -390px;
    bottom: 80px;
}

/* ---------------------------------------------------------
   FOCUS
   --------------------------------------------------------- */

.v2-faq__question:focus-visible,
.v2-faq__cta-button:focus-visible,
.v2-faq__support a:focus-visible {
    outline: 3px solid rgba(255, 87, 87, 0.42);
    outline-offset: 4px;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1100px) {
    .v2-faq {
        padding: 95px 0 90px;
    }

    .v2-faq__grid {
        grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.45fr);
        gap: 55px;
    }

    .v2-faq__title {
        font-size: clamp(36px, 4.8vw, 50px);
    }

    .v2-faq__answer {
        padding-left: 72px;
        padding-right: 45px;
    }
}

@media (max-width: 850px) {
    .v2-faq {
        padding: 82px 0;
    }

    .v2-faq__grid {
        width: min(720px, calc(100% - 40px));
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .v2-faq__intro {
        position: static;
    }

    .v2-faq__title {
        max-width: 600px;
        font-size: clamp(38px, 7vw, 52px);
    }

    .v2-faq__description {
        max-width: 650px;
    }

    .v2-faq__support {
        max-width: 430px;
    }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {
    .v2-faq {
        padding: 68px 0 65px;
    }

    .v2-faq__grid {
        width: min(100% - 32px, 520px);
        gap: 38px;
    }

    .v2-faq__eyebrow {
        margin-bottom: 18px;
    }

    .v2-faq__title {
        font-size: clamp(35px, 10vw, 46px);
        line-height: 1.06;
    }

    .v2-faq__description {
        margin-top: 20px;
        font-size: 14px;
        line-height: 1.75;
    }

    .v2-faq__support {
        margin-top: 30px;
        padding-top: 22px;
    }

    .v2-faq__content-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        margin-bottom: 13px;
    }

    .v2-faq__question {
        grid-template-columns: 28px minmax(0, 1fr) 36px;
        gap: 10px;
        min-height: 72px;
        padding: 15px 3px;
    }

    .v2-faq__question::before {
        top: 13px;
        bottom: 13px;
    }

    .v2-faq__number {
        font-size: 9px;
    }

    .v2-faq__question-text {
        font-size: 13px;
        line-height: 1.45;
    }

    .v2-faq__toggle {
        width: 32px;
        height: 32px;
    }

    .v2-faq__answer {
        padding: 0 39px 0 38px;
    }

    .v2-faq__answer-inner {
        padding-bottom: 23px;
        font-size: 13px;
        line-height: 1.75;
    }

    .v2-faq__cta {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 27px;
        padding: 22px;
        border-radius: 17px;
    }

    .v2-faq__cta-mark {
        display: none;
    }

    .v2-faq__cta-button {
        width: 100%;
    }
}

@media (max-width: 375px) {
    .v2-faq {
        padding-top: 58px;
    }

    .v2-faq__grid {
        width: calc(100% - 26px);
    }

    .v2-faq__question {
        grid-template-columns: 23px minmax(0, 1fr) 32px;
        gap: 8px;
    }

    .v2-faq__question-text {
        font-size: 12.5px;
    }

    .v2-faq__answer {
        padding-left: 31px;
        padding-right: 31px;
    }

    .v2-faq__answer-inner {
        font-size: 12.5px;
    }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .v2-faq *,
    .v2-faq *::before,
    .v2-faq *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}