/* Funnel (Rewarded Content Flow) — unified public page design */
.funnel-app {
    --funnel-radius: 1rem;
    --funnel-radius-sm: 0.75rem;
    --funnel-border: #e5e7eb;
    --funnel-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    --funnel-bg: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    --funnel-page-bg:;
    --funnel-accent: #059669;
    --funnel-accent-soft: #ecfdf5;
    --funnel-text: #374151;
    --funnel-title: #111827;
    --funnel-muted: #6b7280;
    --funnel-stack-gap: 1.25rem;
    background: var(--funnel-page-bg);
}

/* Flow state */
.funnel-app.funnel-locked .funnel-content {
    pointer-events: none;
    user-select: none;
}
.funnel-app.funnel-locked .funnel-overlay,
.funnel-app.funnel-locked .funnel-overlay *,
.funnel-app.funnel-locked [data-funnel-inline-gate],
.funnel-app.funnel-locked [data-funnel-inline-gate] * {
    pointer-events: auto;
    user-select: auto;
}
.funnel-app.funnel-locked.funnel-show-underlying .funnel-content {
    opacity: 0.35;
    filter: blur(1px);
}
.funnel-app.funnel-mode-landing_to_results.funnel-locked .funnel-header,
.funnel-app.funnel-mode-direct_one_page.funnel-locked .funnel-header,
.funnel-app.funnel-mode-inline_gate.funnel-locked .funnel-header,
.funnel-app.funnel-mode-multi_page.funnel-locked .funnel-header {
    pointer-events: auto;
    user-select: auto;
    opacity: 1;
    filter: none;
}
.funnel-app.funnel-unlocked .funnel-content {
    pointer-events: auto;
}
.funnel-app.funnel-unlocked .funnel-overlay,
.funnel-app.funnel-unlocked [data-funnel-inline-gate],
.funnel-app.funnel-unlocked [data-funnel-landing-cta] {
    display: none !important;
}
.funnel-app.funnel-quiz-started:not(.funnel-unlocked) [data-funnel-choices-summary],
.funnel-app.funnel-locked:not(.funnel-unlocked) [data-funnel-choices-summary] {
    display: none !important;
}
.funnel-app:not(.funnel-unlocked) [data-funnel-gated] {
    display: none;
}
.funnel-app.funnel-full-page [data-funnel-gated] {
    display: flex;
}
.funnel-app.funnel-full-page.funnel-locked .funnel-content {
    opacity: 1;
    filter: none;
}
.funnel-app.funnel-readable-landing:not(.funnel-unlocked) .funnel-header,
.funnel-app.funnel-readable-landing:not(.funnel-unlocked) .funnel-landing-cta {
    display: block;
}
.funnel-app.funnel-awaiting-start [data-funnel-inline-gate] {
    display: none !important;
}
.funnel-app.funnel-quiz-started [data-funnel-landing-cta] {
    display: none !important;
}
.funnel-app.funnel-quiz-started .funnel-subtitle,
.funnel-app.funnel-locked .funnel-subtitle,
.funnel-app.funnel-unlocked .funnel-subtitle {
    display: none;
}
.funnel-app.funnel-full-page.funnel-locked .funnel-subtitle,
.funnel-app.funnel-full-page.funnel-quiz-started .funnel-subtitle {
    display: block;
}

/* Page layout */
.funnel-app .funnel-article {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
}
.funnel-page-stack {
    display: flex;
    flex-direction: column;
    gap: var(--funnel-stack-gap);
}

/* Shared card */
.funnel-card__inner {
    border: 1px solid var(--funnel-border);
    border-radius: var(--funnel-radius);
    padding: 1.25rem 1.5rem;
    background: var(--funnel-bg);
    box-shadow: var(--funnel-shadow);
}
.funnel-card__inner--hero {
    padding: 1.5rem 1.75rem;
}
.funnel-card__inner--cta {
    padding: 1.5rem;
}
.funnel-card__inner--flat {
    box-shadow: none;
    background: #f9fafb;
}
.funnel-card--muted .funnel-card__inner {
    color: var(--funnel-muted);
    font-size: 0.875rem;
    background: #f9fafb;
    box-shadow: none;
}
.funnel-card__header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}
.funnel-card__header--compact {
    margin-bottom: 0.5rem;
}
.funnel-card__body > :last-child {
    margin-bottom: 0;
}

/* Hero */
.funnel-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.25;
    font-weight: 800;
    color: var(--funnel-title);
    letter-spacing: -0.02em;
}
.funnel-subtitle {
    margin: 0 0 1rem;
    color: var(--funnel-muted);
    font-size: 0.975rem;
    line-height: 1.55;
}
.funnel-intro {
    margin-top: 0.25rem;
}

/* Icons */
.funnel-section__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: var(--funnel-accent-soft);
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.12);
}
.funnel-section__icon--sm {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    border-radius: 0.625rem;
}
.funnel-section__icon--quiz {
    background: #f5f3ff;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.16);
}
.funnel-section__icon--unlock {
    background: #ecfdf5;
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.14);
}
.funnel-section__icon--warning {
    background: #fffbeb;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.18);
}
.funnel-section__title {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--funnel-title);
}
.funnel-section__title--sm {
    font-size: 0.95rem;
    font-weight: 600;
    color: inherit;
}
.funnel-section__lead {
    margin: -0.25rem 0 0.875rem;
    color: var(--funnel-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Body copy */
.funnel-section-body {
    color: var(--funnel-text);
    font-size: 0.975rem;
    line-height: 1.7;
}
.funnel-section-body > :last-child {
    margin-bottom: 0;
}
.funnel-section-body p + p {
    margin-top: 0.75rem;
}
.funnel-section-body ul,
.funnel-section-body ol {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}
.funnel-section-body li + li {
    margin-top: 0.35rem;
}

/* Content sections */
.funnel-sections {
    display: flex;
    flex-direction: column;
    gap: var(--funnel-stack-gap);
}
.funnel-section-card {
    margin: 0;
}
.funnel-section--benefits .funnel-section__icon {
    background: #ecfdf5;
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.14);
}
.funnel-section--warning .funnel-section__icon {
    background: #fffbeb;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.18);
}
.funnel-section--tips .funnel-section__icon {
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.16);
}
.funnel-section--comparison .funnel-section__icon {
    background: #f5f3ff;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.16);
}
.funnel-section--introduction .funnel-section__icon,
.funnel-section--text .funnel-section__icon {
    background: #f0f9ff;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.16);
}
.funnel-section--cta .funnel-card__inner {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}
.funnel-section--cta .funnel-section__icon {
    background: #dcfce7;
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.18);
}
.funnel-results .funnel-section__icon {
    background: #fef3c7;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.2);
}
.funnel-faqs .funnel-section__icon {
    background: #ede9fe;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.16);
}
.funnel-related .funnel-section__icon {
    background: #e0f2fe;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.16);
}
.funnel-conclusion .funnel-section__icon {
    background: #dcfce7;
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.18);
}

/* Quiz gate */
.funnel-inline-gate.funnel-card > .funnel-card__inner,
.funnel-overlay__panel.funnel-card > .funnel-card__inner {
    margin: 0;
}
.funnel-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    padding: 1rem;
}
.funnel-overlay[hidden] {
    display: none !important;
}
.funnel-overlay__panel {
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.funnel-overlay__panel > .funnel-card__inner {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}
.funnel-progress {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.funnel-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #059669, #10b981);
    transition: width 0.3s ease;
}
.funnel-question-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
.funnel-option-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border: 2px solid var(--funnel-border);
    border-radius: var(--funnel-radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.funnel-option-btn__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
    background: #f3f4f6;
    font-size: 1.1rem;
    line-height: 1;
}
.funnel-option-btn__label {
    flex: 1;
    font-weight: 600;
    color: var(--funnel-title);
}
.funnel-option-btn.is-selected .funnel-option-btn__icon {
    background: #d1fae5;
}
.funnel-option-btn:hover,
.funnel-option-btn:focus-visible {
    border-color: var(--funnel-accent);
    outline: none;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.08);
}
.funnel-option-btn.is-selected {
    border-color: var(--funnel-accent);
    background: var(--funnel-accent-soft);
}
.funnel-choices-summary__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.funnel-choice-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: var(--funnel-accent-soft);
    color: #047857;
    font-size: 0.875rem;
    font-weight: 600;
}
.funnel-choice-tag__icon {
    font-size: 1rem;
    line-height: 1;
}
.funnel-choice-tag__label {
    color: inherit;
}
.funnel-app [data-funnel-next] {
    width: 100%;
    font-size: 1.5rem;
    font-weight: 600;
}
.funnel-quiz-ad-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}
.funnel-quiz-ad-hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--funnel-muted);
    text-align: center;
}
.funnel-quiz-disclosure {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #e5e7eb;
    color: var(--funnel-muted);
    cursor: help;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.funnel-quiz-disclosure:hover,
.funnel-quiz-disclosure:focus-visible {
    background: #d1d5db;
    color: var(--funnel-text);
    outline: none;
}
.funnel-quiz-disclosure__icon {
    font-size: 0.6875rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
}
.funnel-question-prompt {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
.funnel-question-prompt__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: #ede9fe;
    font-size: 1.15rem;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.14);
}
.funnel-question-prompt__text {
    margin: 0;
    flex: 1;
    font-weight: 700;
    color: var(--funnel-title);
    line-height: 1.45;
}
.funnel-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--funnel-accent);
    border-radius: 50%;
    animation: funnel-spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes funnel-spin {
    to { transform: rotate(360deg); }
}
.funnel-disclosure {
    border-left: 3px solid #f59e0b;
    padding-left: 0.75rem;
}

/* Result cards */
.funnel-result-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--funnel-border);
    border-radius: var(--funnel-radius-sm);
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.funnel-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.funnel-result-card.is-hidden {
    display: none !important;
}
.funnel-result-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.funnel-result-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
    padding: 1rem 1.125rem 1.125rem;
}
.funnel-result-card__badge {
    align-self: flex-start;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--funnel-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.funnel-result-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--funnel-title);
}
.funnel-result-card__text {
    margin: 0;
    flex: 1;
    color: var(--funnel-muted);
    font-size: 0.875rem;
    line-height: 1.55;
}
.funnel-result-card__rating {
    margin: 0;
    font-size: 0.875rem;
    color: #f59e0b;
}
.funnel-price {
    margin: 0;
    font-size: 0.95rem;
}
.funnel-price s {
    margin-left: 0.35rem;
    color: var(--funnel-muted);
}
.funnel-result-card__cta {
    margin-top: 0.35rem;
    align-self: flex-start;
}

/* FAQ accordion */
.funnel-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.funnel-accordion .accordion-item {
    border: 1px solid var(--funnel-border);
    border-radius: var(--funnel-radius-sm);
    overflow: hidden;
    background: #fff;
}
.funnel-accordion .accordion-button {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--funnel-title);
    background: #fff;
    box-shadow: none;
}
.funnel-accordion .accordion-button:not(.collapsed) {
    color: var(--funnel-accent);
    background: var(--funnel-accent-soft);
}
.funnel-accordion .accordion-button:focus {
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.25);
}
.funnel-accordion .accordion-body {
    padding: 0.875rem 1rem 1rem;
    border-top: 1px solid #f3f4f6;
}

/* Related searches */
.funnel-related__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.funnel-related__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--funnel-border);
    border-radius: 999px;
    background: #fff;
    color: var(--funnel-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.funnel-related__tag:hover {
    border-color: #a7f3d0;
    background: var(--funnel-accent-soft);
    color: #047857;
}

/* Disclaimer */
.funnel-disclaimer .funnel-section-body {
    color: inherit;
    font-size: inherit;
}

/* Buttons in funnel context */
.funnel-app .btn-primary {
    background: var(--funnel-accent);
    border-color: var(--funnel-accent);
}
.funnel-app .btn-primary:hover,
.funnel-app .btn-primary:focus {
    background: #047857;
    border-color: #047857;
}

body.funnel-scroll-lock {
    overflow: hidden;
}

@media (max-width: 576px) {
    .funnel-app .funnel-article {
        padding-top: 0.75rem;
        padding-bottom: 1.75rem;
    }
    .funnel-card__inner,
    .funnel-card__inner--hero {
        padding: 1rem 1.125rem;
    }
    .funnel-overlay__panel {
        max-width: 100%;
    }
    .funnel-section__icon {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1.15rem;
    }
    .funnel-section__title {
        font-size: 1.05rem;
    }
}
