/* YKR direct-response funnel — aligned with main site (header_light_clean + navbar tokens) */
:root {
    /* Match site: body #f8fafc, nav .inner-content #0D1A1C, accent #ff481f */
    --f-bg: #f8fafc;
    --f-surface: #ffffff;
    --f-card: #ffffff;
    --f-border: #e2e8f0;
    --f-text: #0d1a1c;
    --f-muted: #64748b;
    --f-accent: #ff481f;
    --f-accent-dim: #c53a1a;
    --f-nav-bg: #0d1a1c;
    --f-nav-border: #003f48;
    --f-success: #16a34a;
    --f-radius: 14px;
    --f-max: 1120px;
    --f-tight: 680px;
    --f-font: "Outfit", system-ui, -apple-system, sans-serif;
    --f-shadow-sm: 0 1px 3px rgba(13, 26, 28, 0.06);
    --f-shadow-md: 0 10px 40px rgba(13, 26, 28, 0.08);
}

.funnel-page {
    font-family: var(--f-font);
    background: var(--f-bg);
    color: var(--f-text);
    line-height: 1.45;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.funnel-page a {
    color: inherit;
}

/* Top bar — same palette as theme-main-menu .inner-content (sticky site nav) */
.funnel-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: var(--f-nav-bg);
    border-bottom: 1px solid var(--f-nav-border);
    box-shadow: var(--f-shadow-sm);
}

.funnel-topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.funnel-topbar__brand img {
    height: 28px;
    width: auto;
    display: block;
}

.funnel-topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Buttons */
.funnel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    text-align: center;
    line-height: 1.2;
}

.funnel-btn:active {
    transform: scale(0.98);
}

.funnel-btn--primary {
    background: linear-gradient(135deg, var(--f-accent) 0%, #ff6b35 100%);
    color: #fff !important;
    box-shadow: 0 4px 24px rgba(255, 72, 31, 0.35);
}

.funnel-btn--primary:hover {
    color: #fff !important;
    box-shadow: 0 6px 28px rgba(255, 72, 31, 0.45);
}

.funnel-btn--secondary {
    background: #ffffff;
    color: var(--f-text) !important;
    border: 1px solid var(--f-border);
    box-shadow: var(--f-shadow-sm);
}

.funnel-btn--secondary:hover {
    border-color: rgba(255, 72, 31, 0.5);
    color: var(--f-text) !important;
}

.funnel-btn--ghost {
    background: #ffffff;
    color: var(--f-text) !important;
    border: 1px solid var(--f-border);
    box-shadow: var(--f-shadow-sm);
}

.funnel-btn--ghost:hover {
    background: #fff7f5;
    border-color: rgba(255, 72, 31, 0.35);
    color: var(--f-text) !important;
}

.funnel-btn--wa {
    background: #25d366;
    color: #fff !important;
    padding: 10px 14px;
    font-size: 0.85rem;
}

.funnel-btn--wa:hover {
    filter: brightness(1.05);
    color: #fff !important;
}

.funnel-btn--sm {
    padding: 10px 16px;
    font-size: 0.85rem;
}

.funnel-btn--block {
    width: 100%;
}

/* Layout */
.container-narrow {
    width: 100%;
    max-width: var(--f-max);
    margin: 0 auto;
    padding: 0 20px;
}

.container-tight {
    max-width: var(--f-tight);
    margin: 0 auto;
    padding: 0 20px;
}

.funnel-section {
    padding: 56px 0;
    border-bottom: 1px solid var(--f-border);
}

@media (min-width: 768px) {
    .funnel-section {
        padding: 72px 0;
    }
}

.funnel-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--f-accent);
    margin: 0 0 10px;
}

.funnel-h1 {
    font-size: clamp(1.75rem, 5.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.funnel-h2 {
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.funnel-lead {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    color: var(--f-muted);
    margin: 0 0 24px;
    max-width: 36em;
}

.funnel-hero {
    padding: 28px 0 48px;
    border-bottom: 1px solid var(--f-border);
    background: linear-gradient(180deg, #ffffff 0%, var(--f-bg) 100%);
}

.funnel-ba__panel--after .funnel-ba__mock:not(.funnel-ba__mock--messy) {
    background: rgba(255, 72, 31, 0.07);
}

.funnel-hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.funnel-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 8px;
}

.funnel-trust__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--f-muted);
}

.funnel-trust__pill strong {
    color: var(--f-text);
}

/* Problem grid */
.funnel-problem-grid {
    display: grid;
    gap: 14px;
    margin: 24px 0;
}

@media (min-width: 768px) {
    .funnel-problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.funnel-problem-card {
    background: var(--f-card);
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    padding: 20px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--f-shadow-sm);
}

.funnel-stat-bar {
    margin-top: 20px;
    padding: 16px 18px;
    background: rgba(255, 72, 31, 0.08);
    border: 1px solid rgba(255, 72, 31, 0.25);
    border-radius: var(--f-radius);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--f-text);
}

/* Audit preview */
.funnel-audit-card {
    margin-top: 24px;
    background: var(--f-surface);
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    padding: 22px;
    max-width: 480px;
    box-shadow: var(--f-shadow-sm);
}

.funnel-audit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.funnel-audit-row:last-child {
    margin-bottom: 0;
}

.funnel-meter {
    height: 8px;
    border-radius: 99px;
    background: #e2e8f0;
    overflow: hidden;
    flex: 1;
    margin-left: 12px;
    max-width: 140px;
}

.funnel-meter__fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--f-accent), #fb923c);
}

.funnel-meter__fill--low {
    width: 18%;
    background: #64748b;
}

.funnel-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--f-success);
}

/* Before / After */
.funnel-ba {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .funnel-ba {
        grid-template-columns: 1fr 1fr;
    }
}

.funnel-ba__panel {
    border-radius: var(--f-radius);
    padding: 18px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.funnel-ba__panel--before {
    background: linear-gradient(145deg, #f1f5f9 0%, #ffffff 100%);
    border: 1px solid var(--f-border);
    box-shadow: var(--f-shadow-sm);
}

.funnel-ba__panel--after {
    background: linear-gradient(145deg, rgba(255, 72, 31, 0.06) 0%, #ffffff 100%);
    border: 1px solid rgba(255, 72, 31, 0.35);
    box-shadow: var(--f-shadow-sm);
}

.funnel-ba__label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
    color: var(--f-muted);
}

.funnel-ba__mock {
    flex: 1;
    border-radius: 8px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.funnel-ba__mock--messy::before {
    content: "";
    position: absolute;
    inset: 12px;
    background: repeating-linear-gradient(
        0deg,
        rgba(13, 26, 28, 0.06),
        rgba(13, 26, 28, 0.06) 8px,
        transparent 8px,
        transparent 16px
    );
    border-radius: 4px;
}

.funnel-ba__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.funnel-chip {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: var(--f-muted);
}

.funnel-ba__panel--after .funnel-chip {
    background: rgba(255, 72, 31, 0.12);
    color: var(--f-text);
}

/* Case study block (partial) */
.funnel-cs-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0 22px;
}

.funnel-cs-metrics--pair {
    grid-template-columns: repeat(2, 1fr);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.funnel-cs-metric {
    background: var(--f-card);
    border: 1px solid var(--f-border);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--f-shadow-sm);
}

.funnel-cs-metric__val {
    display: block;
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    font-weight: 800;
    color: var(--f-accent);
    line-height: 1.2;
}

.funnel-cs-metric__lab {
    font-size: 0.7rem;
    color: var(--f-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.funnel-cs-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.funnel-cs-thumb {
    aspect-ratio: 16/10;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.funnel-cs-thumb small {
    font-weight: 500;
    font-size: 0.75rem;
    opacity: 0.75;
}

.funnel-cs-thumb--before {
    background: linear-gradient(160deg, #f1f5f9, #e2e8f0);
    border: 1px solid var(--f-border);
    color: var(--f-text);
}

.funnel-cs-thumb--after {
    background: linear-gradient(160deg, rgba(255, 72, 31, 0.12), #ffffff);
    border: 1px solid rgba(255, 72, 31, 0.35);
    color: var(--f-text);
}

.funnel-cs-cta-wrap {
    text-align: center;
}

/* How it works */
.funnel-steps {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .funnel-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.funnel-step {
    background: var(--f-card);
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    padding: 22px;
    position: relative;
    box-shadow: var(--f-shadow-sm);
}

.funnel-step__num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 72, 31, 0.2);
    color: var(--f-accent);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.funnel-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.funnel-step p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--f-muted);
}

/* Pricing */
.funnel-pricing {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 900px) {
    .funnel-pricing {
        grid-template-columns: repeat(3, 1fr);
    }
}

.funnel-price-card {
    background: var(--f-card);
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--f-shadow-sm);
}

.funnel-price-card--featured {
    border-color: rgba(255, 72, 31, 0.5);
    box-shadow: var(--f-shadow-md), 0 0 0 1px rgba(255, 72, 31, 0.12);
}

.funnel-price-card h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.funnel-price-card .outcome {
    flex: 1;
    font-size: 0.9rem;
    color: var(--f-muted);
    margin: 0 0 18px;
}

/* Risk + final */
.funnel-risk {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 20px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--f-radius);
    margin-top: 8px;
}

.funnel-final {
    text-align: center;
    padding: 56px 0 100px;
    border-bottom: none;
    background: linear-gradient(180deg, var(--f-bg) 0%, #ffffff 40%);
}

@media (max-width: 767px) {
    .funnel-final {
        padding-bottom: 120px;
    }
}

/* Sticky mobile CTA bar */
.funnel-sticky-m {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--f-border);
    box-shadow: 0 -8px 32px rgba(13, 26, 28, 0.08);
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 767px) {
    .funnel-sticky-m {
        display: flex;
    }
}

.funnel-sticky-m .funnel-btn {
    flex: 1;
    padding: 14px 12px;
    font-size: 0.9rem;
}

/* Exit intent modal */
.funnel-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.funnel-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.funnel-modal {
    background: var(--f-surface);
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    padding: 28px 24px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: var(--f-shadow-md);
}

.funnel-modal h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 800;
}

.funnel-modal p {
    margin: 0 0 20px;
    color: var(--f-muted);
    font-size: 0.95rem;
}

.funnel-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    color: var(--f-text);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.funnel-modal__close:hover {
    background: #e2e8f0;
}

/* Footer minimal */
.funnel-foot {
    padding: 28px 20px 32px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--f-muted);
    border-top: 1px solid var(--f-border);
    background: #ffffff;
}

.funnel-foot a {
    color: var(--f-muted);
    text-decoration: none;
    text-underline-offset: 3px;
}

.funnel-foot a:hover {
    color: var(--f-accent);
    text-decoration: underline;
}

/* Case study page extras */
.funnel-cs-hero {
    padding: 32px 0 40px;
    border-bottom: 1px solid var(--f-border);
    background: linear-gradient(180deg, #ffffff 0%, var(--f-bg) 100%);
}

.funnel-list-check {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.funnel-list-check li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid var(--f-border);
    font-size: 0.95rem;
}

.funnel-list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--f-accent);
    font-weight: 800;
}

.funnel-results-dominant {
    margin-top: 24px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(255, 72, 31, 0.08) 0%, #ffffff 55%);
    border: 1px solid rgba(255, 72, 31, 0.35);
    border-radius: var(--f-radius);
    text-align: center;
    box-shadow: var(--f-shadow-sm);
}

.funnel-results-dominant .big {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    color: var(--f-accent);
    line-height: 1.1;
    margin: 0 0 8px;
}

.funnel-flow-visual {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .funnel-flow-visual {
        grid-template-columns: repeat(4, 1fr);
    }
}

.funnel-flow-step {
    background: var(--f-card);
    border: 1px solid var(--f-border);
    border-radius: 10px;
    padding: 14px;
    font-size: 0.8rem;
    text-align: center;
    color: var(--f-muted);
}

.funnel-flow-arrow {
    display: none;
}

@media (min-width: 768px) {
    .funnel-flow-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--f-muted);
        font-size: 1.2rem;
    }
}
