/* ===========================================
   HOW IT WORKS PAGE STYLES
   Brand: CreatorFlow
   Rules: NO box-shadows, dark = #000000 only
   =========================================== */

/* -----------------------------------------
   SECTION 1: HERO
   ----------------------------------------- */
.hiw-hero {
    padding: clamp(100px, 14vw, 160px) 0 clamp(24px, 4vw, 40px);
    background-color: #000000;
    text-align: center;
}

.hiw-hero .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.hiw-hero__headline {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hiw-hero__subheadline {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* -----------------------------------------
   SECTION 2: DEMO/VIDEO EMBED
   ----------------------------------------- */
.hiw-demo {
    padding: clamp(24px, 4vw, 40px) 0 clamp(60px, 8vw, 100px);
    background-color: #000000;
    border-radius: 0 0 32px 32px;
}

.hiw-demo .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.hiw-demo__headline {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin: 0 0 40px;
    letter-spacing: -0.02em;
}

.hiw-demo__wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Wistia video player (iframe embed) */
.hiw-demo__wrapper iframe {
    display: block;
    border-radius: 16px;
}

/* -----------------------------------------
   SECTION 3: FAQ
   ----------------------------------------- */
.hiw-faq {
    padding: clamp(60px, 8vw, 100px) 0;
    background-color: #f9fafb;
}

.hiw-faq .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.hiw-faq__headline {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin: 0 0 48px;
    letter-spacing: -0.02em;
}

.hiw-faq__accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hiw-faq__item {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.hiw-faq__item:hover {
    border-color: #d1d5db;
}

.hiw-faq__item[open] {
    border-color: #000000;
}

.hiw-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #000000;
    list-style: none;
    user-select: none;
    transition: background-color 0.2s ease;
}

.hiw-faq__question::-webkit-details-marker {
    display: none;
}

.hiw-faq__question:hover {
    background-color: #f9fafb;
}

.hiw-faq__icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #6b7280;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.hiw-faq__item[open] .hiw-faq__icon {
    transform: rotate(45deg);
}

.hiw-faq__answer {
    padding: 0 24px 24px;
}

.hiw-faq__answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

/* -----------------------------------------
   RESPONSIVE ADJUSTMENTS
   ----------------------------------------- */
@media (max-width: 1024px) {
    .hiw-demo {
        border-radius: 0 0 24px 24px;
    }
}

@media (max-width: 768px) {
    .hiw-hero {
        padding: 80px 0 20px;
    }

    .hiw-demo {
        padding: 20px 0 48px;
    }

    .hiw-demo__headline {
        margin-bottom: 24px;
    }

    .hiw-demo__wrapper {
        border-radius: 12px;
    }

    .hiw-faq {
        padding: 60px 0;
    }

    .hiw-faq__headline {
        margin-bottom: 32px;
    }

    .hiw-faq__question {
        padding: 16px 20px;
        font-size: 1rem;
    }

    .hiw-faq__answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .hiw-hero .container,
    .hiw-demo .container,
    .hiw-faq .container,
    .hiw-cta .container {
        padding: 0 16px;
    }

    .hiw-faq__accordion {
        gap: 8px;
    }

    .hiw-faq__item {
        border-radius: 8px;
    }
}
