.rf-faq {
    --rf-brand: var(--color_brand, #6e747a);
    --rf-cta: color-mix(in srgb, var(--rf-brand) 62%, #000);
    --rf-focus: color-mix(in srgb, var(--rf-brand) 45%, transparent);
    --rf-ink: #1b1f24;
    --rf-text: #4a5058;
    --rf-muted: #5f6670;
    --rf-icon: #6b7178;
    --rf-line: #e3e6ea;
    --rf-line-strong: #d5dae0;
    --rf-surface: #f3f5f7;
    padding: 44px clamp(20px, 4vw, 52px) 40px;
    color: var(--rf-ink);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(20, 30, 40, .06);
}

@supports (color: oklch(from red l c h)) {
    .rf-faq {
        --rf-cta: oklch(from var(--rf-brand) min(l, .52) c h);
    }
}

.rf-faq__eyebrow {
    display: inline-block;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rf-muted);
    background: #f1f3f5;
    border-radius: 999px;
}

.rf-faq .rf-faq__heading {
    margin: 18px 0 0;
    font-size: clamp(26px, 1rem + 1.4vw, 32px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--rf-ink);
}

.rf-faq .rf-faq__sub {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--rf-muted);
}

.rf-faq__list {
    display: flex;
    flex-direction: column;
    margin-top: var(--sec-head, 36px);
    border-top: 1px solid var(--rf-line);
}

.rf-faq__item {
    border-bottom: 1px solid var(--rf-line);
}

.rf-faq__item[data-tier="extra"] {
    display: none;
}

.rf-faq__list.is-expanded .rf-faq__item[data-tier="extra"] {
    display: block;
    animation: rf-faq-in .3s ease both;
}

@keyframes rf-faq-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.rf-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 4px;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    color: var(--rf-ink);
    background: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.rf-faq__q-text {
    flex: 1 1 auto;
    min-width: 0;
}

.rf-faq__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--rf-icon);
    background: var(--rf-surface);
    border-radius: 50%;
    transition: transform .25s ease, background-color .2s ease, color .2s ease;
}

.rf-faq__icon svg {
    width: 14px;
    height: 14px;
}

.rf-faq__question:hover .rf-faq__icon {
    color: var(--rf-ink);
}

.rf-faq__question[aria-expanded="true"] .rf-faq__icon {
    color: #fff;
    background: var(--rf-cta);
    transform: rotate(45deg);
}

.rf-faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
}

.rf-faq__item.is-open .rf-faq__panel {
    grid-template-rows: 1fr;
}

.rf-faq__panel-inner {
    min-height: 0;
    overflow: hidden;
}

.rf-faq .rf-faq__answer {
    max-width: 80ch;
    margin: 0;
    padding: 0 46px 22px 4px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--rf-text);
}

.rf-faq__footer {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.rf-faq__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--rf-text);
    background: #fff;
    border: 1px solid var(--rf-line-strong);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.rf-faq__toggle:hover {
    color: var(--rf-ink);
    border-color: var(--rf-ink);
}

.rf-faq__toggle-chevron {
    flex: none;
    width: 16px;
    height: 16px;
    transition: transform .25s ease;
}

.rf-faq__toggle[aria-expanded="true"] .rf-faq__toggle-chevron {
    transform: rotate(180deg);
}

.rf-faq__question:focus-visible,
.rf-faq__toggle:focus-visible {
    outline: 2px solid var(--rf-focus);
    outline-offset: 2px;
}

@media (max-width: 720px) {
    .rf-faq {
        padding: 0 16px;
        border-radius: 0;
        box-shadow: none;
    }

    .rf-faq .rf-faq__sub {
        font-size: 15px;
    }

    .rf-faq__question {
        padding: 18px 0;
        font-size: 16px;
    }

    .rf-faq__icon {
        width: 28px;
        height: 28px;
    }

    .rf-faq .rf-faq__answer {
        padding: 0 0 18px;
    }

    .rf-faq__footer {
        margin-top: 22px;
    }

    .rf-faq__toggle {
        justify-content: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rf-faq__icon,
    .rf-faq__panel,
    .rf-faq__toggle,
    .rf-faq__toggle-chevron,
    .rf-faq__item[data-tier="extra"] {
        transition: none;
        animation: none;
    }
}