/* FAQ styles (shared) - extracted from how-it-works page */

/* Header */
.faq-header-new,
#how-it-works-page .faq-header-new {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-title-new,
#how-it-works-page .faq-title-new {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-subtitle-new,
#how-it-works-page .faq-subtitle-new {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

/* Grid */
.faq-grid-new,
#how-it-works-page .faq-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.faq-column-new,
#how-it-works-page .faq-column-new {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item-new,
#how-it-works-page .faq-item-new {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 28px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.faq-item-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    background: rgba(255,255,255,0.03);
}

.faq-btn-new,
#how-it-works-page .faq-btn-new {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-ans-inner,
#how-it-works-page .faq-ans-inner {
    padding: 0 1.5rem 1.5rem 3.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.faq-footer-new,
#how-it-works-page .faq-footer-new {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.faq-footer-new a {
    color: #FFFFFF;
    font-weight: 500;
    margin-left: 0.5rem;
}

.faq-footer-new a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .faq-grid-new,
    #how-it-works-page .faq-grid-new {
        grid-template-columns: 1fr;
    }
}

/* small helper: icon spacing when used inline */
.faq-icon-wrap { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; flex-shrink:0; border-radius:9999px; border:1px solid rgba(255,255,255,0.06); }
.faq-icon-wrap svg { width:18px; height:18px; }

/* active/open visual */
.faq-content-wrap[x-cloak=""] { display:none; }
.faq-item-new .faq-content-wrap[style*="display: block"] + .noop { }

/* When opened via Alpine the content gets displayed; highlight the question */
.faq-item-new:has(.faq-content-wrap[style*="display: block"]) .faq-btn-new {
    background: rgba(255,255,255,0.02);
}

@media (max-width: 768px) {
    .faq-title-new,
    #how-it-works-page .faq-title-new {
        font-size: 2rem;
    }
    .faq-btn-new,
    #how-it-works-page .faq-btn-new {
        padding: 1rem;
        gap: 1rem;
        font-size: 0.95rem;
    }
    .faq-ans-inner,
    #how-it-works-page .faq-ans-inner {
        padding: 0 1rem 1.25rem 1rem;
        font-size: 0.95rem;
    }
    .faq-icon-wrap {
        width: 36px;
        height: 36px;
    }
    .faq-icon-wrap svg {
        width: 14px;
        height: 14px;
    }
}

/* Additional small device responsiveness */
@media (max-width: 480px) {
    .faq-header-new,
    #how-it-works-page .faq-header-new {
        margin-bottom: 2rem;
    }

    .faq-title-new,
    #how-it-works-page .faq-title-new {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .faq-subtitle-new,
    #how-it-works-page .faq-subtitle-new {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .faq-grid-new,
    #how-it-works-page .faq-grid-new {
        gap: 1.5rem;
    }

    .faq-column-new,
    #how-it-works-page .faq-column-new {
        gap: 0.75rem;
    }

    .faq-item-new,
    #how-it-works-page .faq-item-new {
        border-radius: 20px;
    }

    .faq-btn-new,
    #how-it-works-page .faq-btn-new {
        padding: 0.875rem 1.25rem;
        gap: 0.875rem;
        font-size: 0.9rem;
    }

    .faq-ans-inner,
    #how-it-works-page .faq-ans-inner {
        padding: 0 1.25rem 1rem 2.5rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .faq-footer-new,
    #how-it-works-page .faq-footer-new {
        margin-top: 2rem;
        font-size: 1rem;
    }

    .faq-icon-wrap {
        width: 32px;
        height: 32px;
    }

    .faq-icon-wrap svg {
        width: 12px;
        height: 12px;
    }
}

/* ========== FAQ HERO ========== */
.page-hero {
    position: relative;
    /* desktop: banner(48) + navbar(70) + breathing room */
    padding: 148px 0 72px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    background-color: #0a0a0f;
}

/* purple/pink radial glows */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% -10%, rgba(28, 6, 42, 0.28) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 80%,  rgba(47, 8, 31, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 40% 35% at 10% 90%,  rgba(12, 22, 60, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* subtle dot-grid */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* FAQ badge pill */
.faq-hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b026ff;
    background: rgba(176, 38, 255, 0.12);
    border: 1px solid rgba(176, 38, 255, 0.3);
    border-radius: 999px;
    padding: 5px 16px;
    margin-bottom: 1.25rem;
}

.page-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
    color: #fff;
}

.page-hero p {
    font-size: 1.1rem;
    color: #A1A1AA;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* tablet — banner(48) + navbar(70) = 118px */
@media (max-width: 1024px) {
    .page-hero {
        padding: 128px 0 52px;
    }
    .page-hero h1 { font-size: 3.25rem; }
    .page-hero p  { font-size: 1.05rem; max-width: 100%; }
}

/* mobile — banner(48) + mobile-header(68) = 116px */
@media (max-width: 768px) {
    .page-hero {
        padding: 126px 0 44px;
    }
    .page-hero h1 { font-size: 2.6rem; }
    .page-hero p  { font-size: 1rem; }
    .page-hero .container { padding: 0 16px; }
    .page-hero::before {
        background:
            radial-gradient(ellipse 100% 55% at 50% -5%, rgba(176, 38, 255, 0.30) 0%, transparent 70%),
            radial-gradient(ellipse 60% 35% at 90% 90%,  rgba(255, 38, 165, 0.12) 0%, transparent 65%);
    }
}

/* small mobile */
@media (max-width: 480px) {
    .page-hero {
        padding: 120px 0 36px;
    }
    .page-hero h1 { font-size: 2.1rem; margin-bottom: 0.75rem; }
    .page-hero p  { font-size: 0.95rem; }
    .page-hero .container { padding: 0 14px; }
    .faq-hero-badge { font-size: 0.7rem; padding: 4px 12px; margin-bottom: 1rem; }
}

/* very small */
@media (max-width: 360px) {
    .page-hero {
        padding: 114px 0 28px;
    }
    .page-hero h1 { font-size: 1.85rem; margin-bottom: 0.5rem; }
    .page-hero p  { font-size: 0.875rem; }
}
