/**
 * Instagram Engagement Calculator - CreatorFlow Free Tool
 * Brand Colors: #000000 (black), #d1fe17 (lime green)
 * NO box-shadows, NO gradients
 */

/* 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: 1.5rem;
}

.instagram-icon {
    color: #E1306C; /* Instagram brand color */
}

.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 2rem;
    line-height: 1.6;
}

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

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

/* Tabs */
.tool-tabs {
    display: flex;
    gap: 1rem;
    margin: 0 auto 2rem;
    border-bottom: 2px solid #e5e7eb;
    max-width: 700px;
}

.tool-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tool-tab:hover:not(:disabled) {
    color: #000000;
}

.tool-tab--active {
    color: #000000;
    border-bottom-color: #d1fe17;
}

.tool-tab:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tool-tab__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f9fafb;
    color: #6b7280;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}

.tool-tab--active .tool-tab__number {
    background: #d1fe17;
    color: #000000;
}

/* Tab Content */
.tool-content {
    display: none;
}

.tool-content--active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 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;
}

/* Coming Soon Badge */
.coming-soon-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.coming-soon-badge__icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.coming-soon-badge__text {
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.coming-soon-badge__subtitle {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Form */
.tool-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.required {
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #000000;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #d1fe17;
}

.form-input.input-error {
    border-color: #ef4444;
}

.form-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-error {
    font-size: 0.875rem;
    color: #ef4444;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* 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;
    border: 2px solid #d1fe17;
}

.btn--outline {
    background: transparent;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn--outline:hover {
    border-color: #d1fe17;
    color: #000000;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Results Section */
.result-hero {
    text-align: center;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.result-hero__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.result-hero__value {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: #000000;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.result-hero__benchmark {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    display: inline-block;
}

.result-hero__benchmark--excellent {
    background: #d1fee7;
    color: #065f46;
}

.result-hero__benchmark--good {
    background: #dbeafe;
    color: #1e40af;
}

.result-hero__benchmark--average {
    background: #fef3c7;
    color: #92400e;
}

.result-hero__benchmark--low {
    background: #fee2e2;
    color: #991b1b;
}

/* Metric Cards */
.result-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d1fe17;
}

.metric-card__icon svg {
    width: 24px;
    height: 24px;
    color: #000000;
}

.metric-card__content {
    flex: 1;
}

.metric-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
}

.metric-card__label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Result Guide */
.result-guide {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.result-guide__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.benchmark-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benchmark-item__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.benchmark-item--excellent .benchmark-item__dot {
    background: #10b981;
}

.benchmark-item--good .benchmark-item__dot {
    background: #3b82f6;
}

.benchmark-item--average .benchmark-item__dot {
    background: #f59e0b;
}

.benchmark-item--low .benchmark-item__dot {
    background: #ef4444;
}

.benchmark-item__content {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #374151;
}

.benchmark-item__content strong {
    color: #000000;
    font-weight: 600;
}

/* Result Actions */
.result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.result-actions .btn {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
}

/* Formula Box */
.formula-box {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #d1fe17;
    margin: 1rem 0;
}

.formula-box code {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #000000;
    font-weight: 600;
}

/* 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: left;
    line-height: 1.3;
}

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

.tool-info__content code {
    background: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: #6b46c1;
}

.tool-info__steps {
    margin: 2rem 0 3rem;
}

.info-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: flex-start;
    position: relative;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.info-step:hover {
    border-color: #d1fe17;
}

.info-step:last-child {
    margin-bottom: 0;
}

.info-step__icon {
    position: relative;
    flex-shrink: 0;
}

.info-step__icon svg {
    position: absolute;
    top: 11px;
    left: 10px;
    color: #000000;
    z-index: 2;
}

.info-step__number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #d1fe17;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.info-step__content {
    flex: 1;
}

.info-step__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.info-step__content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

/* 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;
}

.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;
}

.tool-info__closing {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #374151;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border-left: 4px solid #d1fe17;
}

.tool-info__closing strong {
    color: #000000;
}

/* Next Step Section */
.tool-next-step {
    background: #ffffff;
    padding: 3.5rem 2rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

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

.tool-next-step__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;
}

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

.tool-next-step__description {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tool-next-step__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.next-step-feature {
    display: flex;
    gap: 1rem;
    text-align: left;
}

.next-step-feature__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d1fe17;
}

.next-step-feature__icon svg {
    width: 24px;
    height: 24px;
    color: #000000;
}

.next-step-feature__content {
    flex: 1;
}

.next-step-feature__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.next-step-feature__text {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.tool-next-step__microcopy {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
}

/* 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 code {
    background: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: #6b46c1;
}

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

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

/* Large CTA Button */
.btn--cta-large {
    background: #000000;
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    font-weight: 700;
}

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

/* 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;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tool-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tool-tabs::-webkit-scrollbar {
        display: none;
    }

    .tool-tab {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        flex-shrink: 0;
    }

    .result-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .tool-next-step {
        padding: 2.5rem 1.5rem;
    }

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

    .tool-next-step__features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tool-info__subtitle {
        margin: 2rem 0 1rem;
    }

    .info-step {
        gap: 1rem;
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .info-step__icon svg {
        width: 24px;
        height: 24px;
        top: 9px;
        left: 8px;
    }

    .info-step__number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

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

    .benefit-card {
        padding: 1.5rem;
    }

    .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-next-step {
        padding: 2rem 1.25rem;
    }

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

    .info-step {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .tool-info__closing {
        padding: 1rem;
        font-size: 1rem;
    }

    .benefit-card {
        padding: 1.25rem;
    }

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

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