/* ==========================================================================
   FAQs (template: faq.php)
   Figma: Website 2.0 › Insights › FAQs (section 2192:25682), desktop frame 1440px,
   content 1240px. No mobile frame: single column with 20px gutters.
   ========================================================================== */

main.w2-faq {
    --w2faq-black: #1a1a1a;
    --w2faq-light-grey: #eef3ff;
    --w2faq-dark-grey: #95a0ba;
    --w2faq-red: #e35246;
    --w2faq-blue: #4285f4;
    --w2faq-green: #34a853;
}

main.w2-faq .w2faq-main *,
main.w2-faq .w2faq-main *::before,
main.w2-faq .w2faq-main *::after {
    box-sizing: border-box;
}

.w2-faq .w2faq-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Section ---------- */
.w2-faq .w2faq-main {
    position: relative;
    overflow: hidden;
    overflow: clip;
    background: #fff;
    color: var(--w2faq-black);
    font-family: "Work Sans", sans-serif;
    padding: 206px 0 90px; /* 116px fixed nav + 90px from the Figma frame */
}

.w2-faq .w2faq-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 90px;
}

/* Blurred colour blobs (Figma "Rectangle" image, rotated) */
.w2-faq .w2faq-glow {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w2-faq .w2faq-glow > span {
    position: relative;
    flex: none;
    overflow: hidden;
}

.w2-faq .w2faq-glow img {
    position: absolute;
    max-width: none;
}

.w2-faq .w2faq-glow-right {
    top: 91px; /* -25px in the frame, which starts under the 116px nav */
    left: calc(50% - 720px + 1139px);
    width: 690.6px;
    height: 646.3px;
}

.w2-faq .w2faq-glow-right > span {
    width: 514.648px;
    height: 577.203px;
    transform: rotate(-104.98deg);
}

.w2-faq .w2faq-glow-right img {
    left: -23.77%;
    top: -12.03%;
    width: 143.18%;
    height: 127.64%;
}

.w2-faq .w2faq-glow-left {
    top: 885px; /* 769px in the frame */
    left: calc(50% - 720px - 492.38px);
    width: 870.35px;
    height: 738.48px;
}

.w2-faq .w2faq-glow-left > span {
    width: 645.469px;
    height: 797.108px;
    transform: rotate(-82.95deg);
}

.w2-faq .w2faq-glow-left img {
    left: 1.32%;
    top: 5.08%;
    width: 114.16%;
    height: 92.43%;
}

/* ---------- Header: title, search, tags ---------- */
.w2-faq .w2faq-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 694px;
    max-width: 100%;
}

.w2-faq .w2faq-title {
    margin: 0;
    font-family: Oswald, sans-serif;
    font-size: 76px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--w2faq-black);
    text-align: center;
    text-transform: capitalize;
    text-box: trim-both cap alphabetic;
}

.w2-faq .w2faq-grad {
    display: inline-block;
    font-size: 78px;
    font-weight: 500;
    background-image: linear-gradient(166.67deg, #4285f4 4.74%, #e35246 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.w2-faq .w2faq-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.w2-faq .w2faq-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 604px;
    max-width: 100%;
    height: 44px;
    padding: 10px 20px;
    border: 1px solid #e6e9ef;
    border-radius: 70px;
    background: var(--w2faq-light-grey);
}

.w2-faq .w2faq-search:focus-within {
    border-color: var(--w2faq-blue);
}

.w2-faq .w2faq-search img {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.w2-faq .w2faq-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: "Work Sans", sans-serif;
    font-size: 17px;
    line-height: 1.3;
    color: var(--w2faq-black);
    box-shadow: none;
}

.w2-faq .w2faq-search input::placeholder {
    color: #7b8292;
    opacity: 1;
}

.w2-faq .w2faq-search input::-webkit-search-cancel-button {
    cursor: pointer;
}

.w2-faq .w2faq-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.w2-faq .w2faq-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 1px solid var(--w2faq-dark-grey);
    border-radius: 80px;
    background: var(--w2faq-light-grey);
    font-family: "Work Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--w2faq-black);
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.w2-faq .w2faq-tag:hover {
    border-color: var(--w2faq-red);
}

.w2-faq .w2faq-tag.is-active {
    border-color: var(--w2faq-red);
    background: #fff;
    font-weight: 600;
}

.w2-faq .w2faq-tag:focus-visible,
.w2-faq .w2faq-toggle:focus-visible {
    outline: 2px solid var(--w2faq-blue);
    outline-offset: 2px;
}

/* ---------- Accordion list ---------- */
.w2-faq .w2faq-list {
    width: 100%;
    max-width: 1240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.w2-faq .w2faq-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.w2-faq .w2faq-group[hidden] {
    display: none;
}

/* Category name: only shown while searching, when results from several categories are mixed */
.w2-faq .w2faq-group-title {
    display: none;
    margin: 20px 0 0;
    font-family: Oswald, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--w2faq-dark-grey);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.w2-faq .w2faq-list.is-searching .w2faq-group-title {
    display: block;
}

.w2-faq .w2faq-list.is-searching .w2faq-group:first-child .w2faq-group-title,
.w2-faq .w2faq-list.is-searching .w2faq-group.is-first-visible .w2faq-group-title {
    margin-top: 0;
}

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

/* Card on the left, round button on the right (button sits outside the card, 10px gap) */
.w2-faq .w2faq-item {
    position: relative;
    padding-right: 93px;
}

.w2-faq .w2faq-card {
    min-height: 83px;
    padding: 30px;
    border-radius: 90px;
    background: var(--w2faq-light-grey);
    cursor: pointer;
    transition: border-radius 0.35s ease;
}

.w2-faq .w2faq-item.is-open .w2faq-card {
    border-radius: 30px;
}

.w2-faq .w2faq-q-wrap {
    margin: 0;
    font: inherit;
}

.w2-faq .w2faq-toggle {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.w2-faq .w2faq-q {
    display: block;
    font-family: Oswald, sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--w2faq-black);
    text-box: trim-both cap alphabetic;
}

.w2-faq .w2faq-a {
    overflow: hidden;
    cursor: auto;
}

.w2-faq .w2faq-a.is-animating {
    transition: height 0.35s ease;
}

.w2-faq .w2faq-a[hidden] {
    display: none;
}

.w2-faq .w2faq-a-inner {
    padding-top: 20px;
    font-size: 17px;
    line-height: 1.3;
    color: var(--w2faq-black);
}

.w2-faq .w2faq-a-inner p {
    margin: 0;
}

.w2-faq .w2faq-a-inner p + p {
    margin-top: 30px;
}

.w2-faq .w2faq-more a {
    color: inherit;
    text-decoration: underline;
}

/* Round button: plus (blue-green, closed) and minus (blue-red, open) cross-fade */
.w2-faq .w2faq-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 83px;
    height: 83px;
    border-radius: 98px;
    overflow: hidden;
}

.w2-faq .w2faq-icon::before,
.w2-faq .w2faq-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transition: opacity 0.3s ease-in-out;
}

.w2-faq .w2faq-icon::before {
    background-image: linear-gradient(132deg, #4285f4 4.74%, #34a853 100%);
}

.w2-faq .w2faq-icon::after {
    background-image: linear-gradient(131.99deg, #4285f4 4.74%, #e35246 100%);
    opacity: 0;
}

.w2-faq .w2faq-item.is-open .w2faq-icon::before {
    opacity: 0;
}

.w2-faq .w2faq-item.is-open .w2faq-icon::after {
    opacity: 1;
}

.w2-faq .w2faq-icon img {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out;
}

.w2-faq .w2faq-icon .icon-minus,
.w2-faq .w2faq-item.is-open .w2faq-icon .icon-plus {
    opacity: 0;
}

.w2-faq .w2faq-item.is-open .w2faq-icon .icon-minus {
    opacity: 1;
}

.w2-faq .w2faq-empty {
    margin: 0;
    padding: 30px;
    border-radius: 30px;
    background: var(--w2faq-light-grey);
    font-size: 17px;
    line-height: 1.3;
    text-align: center;
    color: var(--w2faq-black);
}

.w2-faq .w2faq-empty[hidden] {
    display: none;
}

.w2-faq .w2faq-empty a {
    color: inherit;
    text-decoration: underline;
}

/* ---------- Shared dark CTA (markup + base styles from main.css) ---------- */
main.w2-faq .see-whats-possible {
    background: #0a0a0a;
}

@media (prefers-reduced-motion: reduce) {
    .w2-faq .w2faq-card,
    .w2-faq .w2faq-a.is-animating,
    .w2-faq .w2faq-icon::before,
    .w2-faq .w2faq-icon::after,
    .w2-faq .w2faq-icon img,
    .w2-faq .w2faq-tag {
        transition: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1340px) {
    .w2-faq .w2faq-container {
        padding: 0 60px;
    }
}

@media (max-width: 1033px) {
    /* the mobile header is sticky, so no room for a fixed nav is needed */
    .w2-faq .w2faq-main {
        padding: 60px 0 60px;
    }

    .w2-faq .w2faq-container {
        padding: 0 40px;
        gap: 50px;
    }

    .w2-faq .w2faq-glow-left {
        display: none;
    }

    .w2-faq .w2faq-glow-right {
        top: -60px;
        left: auto;
        right: -560px; /* keep the blob at the right edge, clear of the title */
        transform: scale(0.6);
        transform-origin: top left;
    }

    .w2-faq .w2faq-title {
        font-size: 50px;
    }

    .w2-faq .w2faq-grad {
        font-size: 52px;
    }

    main.w2-faq .see-whats-possible .see-whats-possible-bg {
        left: 0;
        height: auto;
        top: 20%;
    }
}

@media (max-width: 767px) {
    .w2-faq .w2faq-main {
        padding: 40px 0 50px;
    }

    .w2-faq .w2faq-container {
        padding: 0 20px;
        gap: 40px;
    }

    .w2-faq .w2faq-header {
        gap: 24px;
    }

    .w2-faq .w2faq-title {
        font-size: 40px;
    }

    .w2-faq .w2faq-grad {
        font-size: 42px;
    }

    .w2-faq .w2faq-search input {
        font-size: 16px; /* 16px stops iOS zooming into the field */
    }

    .w2-faq .w2faq-tags {
        gap: 8px;
    }

    .w2-faq .w2faq-item {
        padding-right: 56px;
    }

    .w2-faq .w2faq-card {
        min-height: 48px;
        padding: 20px;
        border-radius: 30px;
    }

    .w2-faq .w2faq-item.is-open .w2faq-card {
        border-radius: 20px;
    }

    .w2-faq .w2faq-q {
        font-size: 20px;
        line-height: 1.2;
    }

    .w2-faq .w2faq-a-inner {
        padding-top: 14px;
        font-size: 15px;
    }

    .w2-faq .w2faq-icon {
        width: 48px;
        height: 48px;
    }

    .w2-faq .w2faq-icon img {
        width: 36px;
        height: 36px;
    }

    .w2-faq .w2faq-empty {
        padding: 20px;
        border-radius: 20px;
        font-size: 15px;
    }
}
