/* InsightFlow product page — conversational research branding */
/* Color palette: deep navy + soft blue (InsightFlow brand) */

:root {
    --if-navy: #1b2a4a;
    --if-navy-deep: #111d35;
    --if-blue: #3b82f6;
    --if-blue-dark: #2563eb;
    --if-white: #f8fafc;
    --if-gray: #94a3b8;
    --if-gray-light: #cbd5e1;
    --if-border: rgba(255, 255, 255, 0.08);
}

/* Override body background for insightflow page */
body.insightflow-page {
    background: var(--if-navy-deep);
}

/* ── Hero ── */
.if-hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.if-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(27, 42, 74, 0.9) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.if-hero-content {
    max-width: 860px;
    position: relative;
    z-index: 1;
}

.if-hero-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.if-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--if-white);
}

.if-hero .tagline {
    font-size: 1.2rem;
    color: var(--if-gray);
    font-weight: 300;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.if-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.if-cta-primary {
    background: var(--if-blue);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.if-cta-primary:hover {
    background: var(--if-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.if-cta-secondary {
    color: var(--if-white);
    padding: 0.9rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.if-cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* ── Sections shared ── */
.if-section {
    padding: 5rem 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.if-section-alt {
    padding: 5rem 2rem;
    background: var(--if-navy);
}

.if-section-alt > .if-section-inner {
    max-width: 960px;
    margin: 0 auto;
}

.if-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--if-white);
}

.if-section-alt h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--if-white);
}

.if-section p,
.if-section-alt p {
    color: var(--if-gray);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.if-section p strong,
.if-section-alt p strong {
    color: var(--if-white);
    font-weight: 500;
}

/* ── Problem cards ── */
.if-problems {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .if-problems {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.if-problem {
    background: var(--if-navy-deep);
    border: 1px solid var(--if-border);
    border-radius: 10px;
    padding: 2rem;
    transition: border-color 0.3s ease;
}

.if-problem:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.if-problem h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--if-white);
}

.if-problem p {
    font-size: 0.95rem;
    color: var(--if-gray);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ── How it works steps ── */
.if-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    counter-reset: step-counter;
}

@media (min-width: 640px) {
    .if-steps {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.if-step {
    text-align: center;
    padding: 2rem 1.5rem;
}

.if-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--if-blue);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.if-step h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--if-white);
}

.if-step p {
    font-size: 0.95rem;
    color: var(--if-gray);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ── Feature cards ── */
.if-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .if-features {
        grid-template-columns: 1fr;
    }
}

.if-feature {
    background: var(--if-navy-deep);
    border: 1px solid var(--if-border);
    border-radius: 10px;
    padding: 2rem;
    transition: border-color 0.3s ease;
}

.if-feature:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.if-feature h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--if-white);
}

.if-feature p {
    font-size: 0.95rem;
    color: var(--if-gray);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ── Credibility section ── */
.if-cred-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .if-cred-grid {
        grid-template-columns: 1fr;
    }
}

.if-cred-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.if-cred-bullet {
    width: 6px;
    height: 6px;
    min-width: 6px;
    background: var(--if-blue);
    border-radius: 50%;
    margin-top: 0.55rem;
}

.if-cred-item span {
    color: var(--if-gray-light);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.5;
}

/* ── Pilot CTA section ── */
.if-pilot {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
}

.if-pilot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--if-blue), transparent);
    opacity: 0.3;
}

.if-pilot h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--if-white);
}

.if-pilot p {
    color: var(--if-gray);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.if-pilot-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2.5rem 0;
}

.if-pilot-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.if-pilot-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--if-blue);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.if-pilot-step span:last-child {
    color: var(--if-gray-light);
    font-size: 0.95rem;
    font-weight: 300;
}

.if-pilot .if-cta-primary {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ── Footer disclaimer ── */
.if-footer-note {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--if-gray);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .if-hero {
        padding: 7rem 1.5rem 3rem;
        min-height: 70vh;
    }

    .if-section,
    .if-section-alt > .if-section-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .if-pilot-steps {
        flex-direction: column;
        align-items: center;
    }
}
