import type { ServiceDetailContent } from '$lib/types/service-page';

const discoveryCallUrl =
    'https://cal.mifi.ventures/the-mifi/30min?utm_source=website&utm_medium=cta&utm_campaign=schedule_call&utm_content=fractional_cto_page';

export const pageContent: ServiceDetailContent = {
    hero: {
        title: 'Fractional CTO for Early-Stage SaaS',
        subtitle:
            'At a certain point, early-stage SaaS teams need more than just developers shipping features. They need someone steering the technical decisions. I work alongside founders and engineers to keep architecture sane, prevent premature complexity, and help teams move fast without creating structural problems.',
        bookingLinkTitle: 'Book a discovery call',
        bookingLinkUrl: discoveryCallUrl,
        secondaryCta: {
            href: '#approach',
            label: 'See how I work',
            umamiEventLabel: 'see how i work',
        },
    },
    tocItems: [
        { label: 'When teams need technical leadership', href: '#when-teams' },
        { label: 'The two common failure modes', href: '#failure-modes' },
        { label: 'What working with me looks like', href: '#approach' },
        { label: 'What engineering teams notice', href: '#what-changes' },
        { label: 'Engagement structure', href: '#engagement' },
        { label: "Who it's for", href: '#who-its-for' },
        { label: 'FAQ', href: '#faq' },
        { label: 'Get in touch', href: '#final-cta' },
    ],
    navItems: [
        { label: 'Home', href: '/', umamiEventLabel: 'home' },
        { label: 'How I work', href: '#approach', umamiEventLabel: 'approach' },
        { label: 'Engagement', href: '#engagement', umamiEventLabel: 'engagement' },
        { label: 'FAQ', href: '#faq', umamiEventLabel: 'faq' },
        {
            label: 'Book a call',
            href: `${discoveryCallUrl}-navigation`,
            umamiEventLabel: 'book-call',
        },
    ],
    sections: [
        {
            id: 'when-teams',
            headingId: 'when-teams-heading',
            heading: 'When a team needs technical leadership—but not a full-time CTO',
            paragraphs: [
                'Most early-stage SaaS companies reach a moment where shipping features is no longer the only challenge. Architecture decisions start to compound. Tooling choices matter. Hiring decisions become technical decisions.',
                'But hiring a full-time CTO is often premature.',
                'A fractional CTO provides senior-level guidance without the cost and commitment of a full-time executive.',
                'Typical signs a team is here:',
            ],
            bullets: [
                'The codebase is growing quickly and architectural decisions are becoming harder to reverse',
                'Founders want a second opinion on technical tradeoffs',
                'Engineering teams are shipping but lack architectural guardrails',
                'Tooling and infrastructure decisions feel arbitrary',
                'Hiring engineers without a clear technical standard',
            ],
        },
        {
            id: 'failure-modes',
            headingId: 'failure-modes-heading',
            heading: 'The two ways early-stage teams usually get it wrong',
            paragraphs: ['I see two patterns repeatedly.'],
            subsections: [
                {
                    heading: 'Over-building too early',
                    paragraphs: [
                        "Teams adopt infrastructure and services designed for companies ten times their size. They spend time and capital building systems they don't yet need.",
                    ],
                },
                {
                    heading: 'Shipping chaos',
                    paragraphs: [
                        'Other teams rush an MVP by outsourcing development cheaply, producing something that works—but is extremely difficult to iterate on.',
                    ],
                },
            ],
            trailingParagraphs: [
                'Healthy early-stage engineering balances both pressures: lean spending with solid foundations.',
            ],
            footerLinks: [
                {
                    label: 'Hands-on SaaS architecture',
                    href: '/services/hands-on-saas-architecture-consultant',
                },
                {
                    label: 'MVP architecture and launch',
                    href: '/services/mvp-architecture-and-launch',
                },
                {
                    label: 'Stage-aligned infrastructure',
                    href: '/services/stage-aligned-infrastructure',
                },
            ],
        },
        {
            id: 'approach',
            headingId: 'approach-heading',
            heading: 'What working with me looks like',
            paragraphs: [
                'I operate as a technical partner for founders and engineering teams.',
                'That means I help with both strategic decisions and practical implementation.',
                'Typical involvement includes:',
            ],
            bullets: [
                'Reviewing architecture decisions before they become expensive mistakes',
                'Participating in product and roadmap discussions',
                'Setting architectural guardrails for the engineering team',
                'Evaluating tooling and infrastructure choices',
                'Mentoring developers and improving engineering practices',
                'Refactoring critical parts of the codebase when necessary',
                'Helping founders understand the technical tradeoffs behind decisions',
            ],
            trailingParagraphs: [
                'I am not a slide-deck CTO. I stay close enough to the code to keep decisions grounded in reality.',
            ],
        },
        {
            id: 'what-changes',
            headingId: 'what-changes-heading',
            heading: 'What changes when technical leadership is present',
            paragraphs: [
                'When a team has clear technical leadership, several things happen quickly:',
            ],
            bullets: [
                'Architectural decisions become intentional instead of reactive',
                'Developers move faster because the system has clearer structure',
                'Tooling choices become consistent',
                'Technical discussions shift from opinion to reasoning',
                'Engineers spend more time building and less time debating direction',
            ],
            trailingParagraphs: [
                'The result is not just cleaner systems—but a calmer engineering culture.',
            ],
        },
        {
            id: 'engagement',
            headingId: 'engagement-heading',
            heading: 'How fractional CTO engagements usually work',
            paragraphs: [
                'Engagements are typically structured as a monthly retainer with defined availability.',
                "Typical involvement ranges between 10–40 hours per month depending on the company's stage and needs.",
                'This usually includes:',
            ],
            bullets: [
                'Regular founder check-ins',
                'Engineering architecture reviews',
                'Product roadmap discussions',
                'Codebase and system reviews',
                'Guidance on hiring and technical standards',
            ],
            trailingParagraphs: [
                'The goal is consistent oversight without becoming a bottleneck.',
            ],
        },
    ],
    who: {
        whoForList: [
            'Founder-led SaaS companies',
            '1–15 engineers',
            'Teams preparing to scale their product',
            'Companies that want technical leadership without a full-time CTO',
        ],
        whoNotList: [
            'Companies that already have strong senior technical leadership',
            'Enterprises needing full-time executive presence',
            'Teams looking only for implementation without architectural guidance',
        ],
    },
    scheduleCta: {
        sectionId: 'final-cta',
        headingId: 'final-cta-heading',
        title: 'Need a technical adult in the room?',
        subtitle:
            'If your team is shipping quickly but architectural decisions are starting to feel heavier, a fractional CTO engagement can provide the guidance needed to keep the system healthy while the product grows.',
        bookingLinkTitle: 'Book a discovery call',
        bookingLinkUrl: `${discoveryCallUrl}-schedule-section`,
        showEmailLink: true,
    },
    meta: {
        title: 'Fractional CTO for Early-Stage SaaS | mifi Ventures',
        description:
            'Technical leadership for early-stage SaaS teams that need architectural direction without hiring a full-time CTO. Hands-on guidance that keeps teams shipping while preventing structural mistakes.',
        jsonLdServiceDescription:
            'Fractional CTO and technical partner for early-stage SaaS: architectural direction, codebase and tooling guidance, and hands-on leadership without the cost of a full-time CTO. Monthly retainer engagements.',
    },
};
