/* FAQs — interactive 3D help chapters */

.page-faqs-tree {
    --fq-ink: #10231f;
    --fq-mist: #eef4f1;
    --fq-forest: #145c4c;
    --fq-deep: #0c3d33;
    --fq-gold: #b8893a;
    --fq-gold-soft: #f3e4c4;
}

.page-faqs-tree .site-footer {
    padding-bottom: 5.5rem;
}

.page-faqs-tree .breadcrumbs a,
.page-faqs-tree .site-breadcrumbs a {
    color: var(--fq-gold-soft);
}

.page-faqs-tree .breadcrumbs,
.page-faqs-tree .site-breadcrumbs {
    color: rgba(244, 247, 245, 0.75);
}

.fq-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 2.5rem 0 2.25rem;
    color: #f4f7f5;
}

.fq-hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(155deg, #0c3d33 0%, #145c4c 45%, #c9a45a 130%);
}

.fq-hero-atmosphere::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 28, 24, 0.15), rgba(8, 28, 24, 0.55));
}

.fq-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.42;
    animation: hx-float 10s ease-in-out infinite;
}

.fq-orb--a {
    width: 220px;
    height: 220px;
    top: 10%;
    right: 8%;
    background: radial-gradient(circle at 30% 30%, #f3e4c4, transparent 65%);
}

.fq-orb--b {
    width: 140px;
    height: 140px;
    bottom: 14%;
    left: 10%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.35), transparent 70%);
    animation-delay: -3s;
}

.fq-floor {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -8%;
    height: 42%;
    background:
        linear-gradient(to top, rgba(8, 28, 24, 0.7), transparent),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 56px);
    transform: perspective(650px) rotateX(58deg);
    transform-origin: center bottom;
}

.fq-hero-inner {
    position: relative;
    max-width: 820px;
}

.fq-eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fq-gold-soft);
}

.fq-eyebrow--dark {
    color: var(--fq-forest);
}

.fq-hero h1 {
    margin: 0.4rem 0 0.65rem;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.fq-lead {
    margin: 0 0 1.25rem;
    max-width: 40rem;
    line-height: 1.6;
    color: rgba(244, 247, 245, 0.88);
}

.fq-lead a {
    color: var(--fq-gold-soft);
    font-weight: 600;
}

.fq-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.35rem;
}

.fq-btn-solid,
.fq-btn-ghost,
.fq-btn-solid-dark,
.fq-btn-ghost-dark {
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fq-btn-solid {
    background: var(--fq-gold);
    color: #14201c;
}

.fq-btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #f4f7f5;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.fq-btn-solid-dark {
    background: var(--fq-deep);
    color: #fff;
}

.fq-btn-ghost-dark {
    background: rgba(12, 61, 51, 0.08);
    color: var(--fq-deep);
    border: 1px solid rgba(20, 92, 76, 0.2);
}

.fq-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    margin: 0 0 1.25rem;
}

.fq-hero-stats dt {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}

.fq-hero-stats dd {
    margin: 0.15rem 0 0;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.fq-page {
    padding: 2rem 0 2.75rem;
    background:
        radial-gradient(ellipse 60% 30% at 85% 4%, rgba(184, 137, 58, 0.1), transparent 55%),
        radial-gradient(ellipse 70% 35% at 12% 0%, rgba(20, 92, 76, 0.08), transparent 55%),
        linear-gradient(180deg, #f7faf8 0%, #ffffff 45%, #eef4f1 100%);
}

.fq-step-rail {
    position: sticky;
    top: 4.75rem;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0 0 1.75rem;
    padding: 0.5rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 35, 31, 0.1);
    box-shadow: 0 16px 36px rgba(12, 40, 34, 0.1);
    backdrop-filter: blur(12px);
}

.fq-step-rail-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    border: 0;
    background: transparent;
    color: #5b6b65;
    font: inherit;
    padding: 0.55rem 0.25rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.fq-step-rail-btn span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.fq-step-rail-btn strong {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.fq-step-rail-btn small {
    font-size: 0.66rem;
    opacity: 0.8;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fq-step-rail-btn:hover {
    color: var(--fq-deep);
    background: rgba(20, 92, 76, 0.06);
}

.fq-step-rail-btn.is-active {
    color: #fff;
    background: linear-gradient(160deg, var(--fq-forest), var(--fq-deep));
    box-shadow: 0 10px 22px rgba(12, 61, 51, 0.22);
    transform: translateY(-1px) scale(1.02);
}

.fq-step-rail-btn.is-active small {
    color: rgba(243, 228, 196, 0.95);
}

.fq-chapters {
    display: grid;
    gap: 1.4rem;
    margin-bottom: 1.5rem;
}

.fq-chapter {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 1.7rem;
    padding: 1.45rem 1.2rem 1.35rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, #f7faf8 55%, #f8f1e3 130%);
    border: 1px solid rgba(16, 35, 31, 0.1);
    box-shadow: 0 22px 48px rgba(12, 40, 34, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.fq-chapter.is-active {
    border-color: rgba(20, 92, 76, 0.28);
    box-shadow: 0 28px 60px rgba(12, 40, 34, 0.16);
}

.fq-chapter--hero {
    color: #fff;
    background: linear-gradient(150deg, #0c3d33 0%, #145c4c 50%, #8f6a2f 140%);
    border-color: transparent;
}

.fq-chapter-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    top: -70px;
    right: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 228, 196, 0.35), transparent 68%);
    filter: blur(2px);
    animation: hx-float 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.fq-chapter-glow--soft {
    left: -50px;
    right: auto;
    bottom: -80px;
    top: auto;
    background: radial-gradient(circle, rgba(20, 92, 76, 0.16), transparent 70%);
    animation-delay: -3.5s;
}

.fq-chapter-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.25rem;
}

.fq-chapter-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fq-gold-soft);
}

.fq-chapter-kicker--dark {
    color: var(--fq-forest);
}

.fq-chapter-kicker span {
    display: inline-grid;
    place-items: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(243, 228, 196, 0.35);
}

.fq-chapter-kicker--dark span {
    background: linear-gradient(160deg, var(--fq-forest), var(--fq-deep));
    border-color: transparent;
    box-shadow: 0 8px 16px rgba(12, 61, 51, 0.18);
}

.fq-chapter-copy h3 {
    margin: 0 0 0.45rem;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: clamp(1.4rem, 2.7vw, 1.9rem);
    letter-spacing: -0.02em;
}

.fq-chapter-copy > p {
    margin: 0 0 1rem;
    max-width: 40rem;
    line-height: 1.6;
}

.fq-chapter--hero .fq-chapter-copy > p {
    color: rgba(244, 247, 245, 0.9);
}

.fq-chapter:not(.fq-chapter--hero) .fq-chapter-copy > p {
    color: #5b6b65;
}

.fq-chapter-aside {
    display: grid;
    gap: 0.7rem;
    perspective: 900px;
    align-content: start;
}

.fq-float {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 1.05rem;
    border-radius: 1rem;
    background: linear-gradient(160deg, #ffffff 0%, #f7faf8 70%, #f3e4c4 150%);
    color: var(--fq-ink);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
    transition: transform 0.25s ease;
}

.fq-chapter:not(.fq-chapter--hero) .fq-float {
    box-shadow: 0 12px 26px rgba(12, 40, 34, 0.08);
    border-color: rgba(16, 35, 31, 0.1);
}

.fq-chapter.is-active .fq-float:nth-child(1) {
    transform: translateY(-2px) rotateX(2deg);
}

.fq-chapter.is-active .fq-float:nth-child(2) {
    transform: translateY(0) rotateY(-2deg);
}

.fq-chapter.is-active .fq-float:nth-child(3) {
    transform: translateY(2px) rotateX(-2deg);
}

.fq-float strong {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(16, 35, 31, 0.62);
}

.fq-float span {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fq-deep);
    line-height: 1.35;
}

.fq-leaves {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
}

.fq-leaf {
    border: 1px solid rgba(20, 92, 76, 0.14);
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fq-chapter--hero .fq-leaf {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.35);
}

.fq-leaf[open] {
    box-shadow: 0 12px 28px rgba(12, 61, 51, 0.1);
    border-color: rgba(20, 92, 76, 0.28);
}

.fq-leaf-question {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    list-style: none;
    cursor: pointer;
    padding: 0.95rem 1rem;
    font-weight: 700;
    color: var(--fq-deep);
}

.fq-leaf-question::-webkit-details-marker {
    display: none;
}

.fq-leaf-question::after {
    content: '+';
    margin-left: auto;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(20, 92, 76, 0.08);
    color: var(--fq-forest);
    font-weight: 700;
}

.fq-leaf[open] .fq-leaf-question::after {
    content: '−';
    background: var(--fq-deep);
    color: #fff;
}

.fq-leaf-index {
    flex-shrink: 0;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--fq-gold);
    margin-top: 0.2rem;
}

.fq-leaf-text {
    flex: 1;
    line-height: 1.4;
}

.fq-leaf-answer {
    padding: 0 1rem 1rem 2.7rem;
    color: rgba(16, 35, 31, 0.78);
    line-height: 1.6;
}

.fq-leaf-answer p {
    margin: 0;
}

.fq-chapter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.fq-cta-card {
    display: grid;
    gap: 1rem;
    padding: 1.35rem 1.25rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid rgba(20, 92, 76, 0.12);
    box-shadow: 0 14px 32px rgba(12, 61, 51, 0.06);
}

.fq-cta-card h2 {
    margin: 0.25rem 0 0.45rem;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: 1.35rem;
    color: var(--fq-deep);
}

.fq-cta-card p {
    margin: 0;
    color: rgba(16, 35, 31, 0.72);
    line-height: 1.55;
}

.fq-cta-card a {
    color: var(--fq-forest);
    font-weight: 600;
}

.fq-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.fq-dock {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 40;
    display: flex;
    gap: 0.45rem;
    transform: translateX(-50%);
    padding: 0.4rem;
    border-radius: 999px;
    background: rgba(12, 61, 51, 0.92);
    box-shadow: 0 16px 40px rgba(12, 61, 51, 0.35);
    backdrop-filter: blur(10px);
}

.fq-dock-btn {
    color: #f4f7f5;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
}

.fq-dock-btn--primary {
    background: var(--fq-gold);
    color: #14201c;
}

.faqs-page-cta a {
    color: var(--fq-forest);
    font-weight: 600;
}

@media (min-width: 900px) {
    .fq-chapter {
        padding: 1.85rem 1.75rem 1.65rem;
    }

    .fq-chapter-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.75fr);
        align-items: start;
        gap: 1.75rem;
    }

    .fq-cta-card {
        grid-template-columns: 1.4fr auto;
        align-items: center;
        padding: 1.5rem 1.5rem;
    }
}

@media (max-width: 1100px) {
    .fq-step-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-radius: 1.2rem;
    }
}

@media (max-width: 720px) {
    .fq-step-rail {
        top: 4.25rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 1.1rem;
    }

    .fq-step-rail-btn small {
        display: none;
    }

    .fq-chapter {
        padding: 1.25rem 1rem 1.15rem;
    }

    .fq-chapter.is-active .fq-float {
        transform: none;
    }

    .fq-hero-actions .btn {
        width: 100%;
    }

    .fq-leaf-answer {
        padding-left: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fq-orb,
    .fq-chapter-glow {
        animation: none !important;
    }

    .fq-chapter.is-active .fq-float,
    .fq-step-rail-btn.is-active {
        transform: none !important;
    }

    .fq-leaf,
    .fq-step-rail-btn,
    .fq-chapter {
        transition: none !important;
    }
}
