/**
 * Instagram Metrics Knowledge Quiz - CreatorFlow Free Tool
 * Brand Colors: #000000 (black), #d1fe17 (lime green)
 * NO box-shadows, NO gradients per brand guidelines
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings use Stack Sans Headline per brand guidelines */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Tool Container */
.tool-container {
    min-height: 100vh;
}

/* Hero Section */
.tool-hero {
    background: #ffffff;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.tool-hero__container {
    max-width: 800px;
    margin: 0 auto;
}

.tool-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.instagram-icon {
    color: #E1306C;
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #d1fe17;
    color: #000000;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.coming-soon-badge svg {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.tool-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.tool-hero__description {
    font-size: 1.125rem;
    color: #374151;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tool Section */
.tool-section {
    padding: 4rem 2rem;
    background: #ffffff;
}

.tool-section__container {
    max-width: 900px;
    margin: 0 auto;
}

/* Tool Card */
.tool-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    max-width: 700px;
    margin: 0 auto;
}

.tool-card__title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #000000;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.3;
}

/* Quiz Placeholder */
.quiz-placeholder {
    text-align: center;
}

.placeholder-icon {
    margin-bottom: 1.5rem;
    color: #d1fe17;
}

.placeholder-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.placeholder-description {
    font-size: 1.0625rem;
    color: #374151;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.placeholder-features {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.placeholder-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.5;
}

.placeholder-feature:last-child {
    margin-bottom: 0;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: #000000;
    flex-shrink: 0;
    margin-top: 2px;
}

.placeholder-cta {
    margin-top: 2rem;
}

.placeholder-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn--primary {
    background: #000000;
    color: #ffffff;
    width: 100%;
    justify-content: center;
    font-size: 1.0625rem;
    padding: 1rem 1.5rem;
    font-weight: 700;
}

.btn--primary:hover {
    background: #d1fe17;
    color: #000000;
}

.btn--primary:focus {
    outline: none;
    /* NO box-shadow per brand guidelines */
}

/* Tool Info Section (SEO Content) */
.tool-info {
    background: #ffffff;
    padding: 3.5rem 2rem;
}

.tool-info__container {
    max-width: 800px;
    margin: 0 auto;
}

.tool-info__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #000000;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.2;
}

.tool-info__subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 700;
    color: #000000;
    margin: 3rem 0 1.5rem;
    text-align: center;
    line-height: 1.3;
}

.tool-info__content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1.25rem;
}

/* Benefits Grid */
.tool-info__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.benefit-card {
    background: #f9fafb;
    padding: 1.75rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-card:hover {
    border-color: #d1fe17;
    background: #ffffff;
    transform: translateY(-4px);
}

.benefit-card__icon {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d1fe17;
    flex-shrink: 0;
}

.benefit-card__icon svg {
    color: #000000;
    stroke-width: 2;
}

.benefit-card__content {
    flex: 1;
}

.benefit-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.benefit-card__text {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section */
.tool-faq {
    background: #ffffff;
    padding: 3.5rem 2rem;
}

.tool-faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.tool-faq__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #000000;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #d1fe17;
}

.faq-item[open] {
    border-color: #d1fe17;
}

.faq-question {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #000000;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.faq-question:hover {
    color: #000000;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
    color: #000000;
}

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

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

.faq-answer p {
    margin: 0 0 1rem 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: #000000;
    text-decoration: underline;
    font-weight: 600;
}

.faq-answer a:hover {
    color: #d1fe17;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tool-hero {
        padding: 1.75rem 1.5rem;
    }

    .tool-hero__description {
        font-size: 1rem;
    }

    .tool-section {
        padding: 3rem 1.5rem;
    }

    .tool-card {
        padding: 2rem 1.5rem;
    }

    .tool-info {
        padding: 2.5rem 1.5rem;
    }

    .tool-faq {
        padding: 2.5rem 1.5rem;
    }

    .tool-info__benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .benefit-card:hover {
        transform: translateY(-2px);
    }

    .benefit-card__icon {
        width: 48px;
        height: 48px;
    }

    .benefit-card__icon svg {
        width: 28px;
        height: 28px;
    }
}

/* iPhone 14 and smaller */
@media (max-width: 430px) {
    .tool-hero {
        padding: 1.5rem 1.25rem;
    }

    .tool-card {
        padding: 1.5rem 1.25rem;
    }

    .tool-info {
        padding: 2rem 1.25rem;
    }

    .tool-faq {
        padding: 2rem 1.25rem;
    }

    .benefit-card {
        padding: 1.25rem;
    }

    .benefit-card__icon {
        width: 44px;
        height: 44px;
    }

    .benefit-card__icon svg {
        width: 24px;
        height: 24px;
    }
}
