:root {
    --shadow-sm: 0 1px 3px rgba(0, 62, 125, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 62, 125, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 62, 125, 0.12);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ── Hero ── */

.hero-wrapper {
    background-color: var(--linky-light-blue);
    padding: 0 20px 80px;
    clip-path: ellipse(85% 100% at 50% 0%);
    margin-top: -10px;
}

.hero {
    max-width: 1024px;
    margin: 0 auto;
    padding: 60px 0 0;
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: center;
    color: black;

    .hero-text {
        flex: 1;

        h1 {
            font-size: 3.2rem;
            line-height: 1.1;
            margin-bottom: 20px;
            text-align: left;
        }

        .accent {
            color: var(--linky-red);
        }

        p {
            font-size: 1.25rem;
            line-height: 1.5;
            max-width: 480px;
            margin-bottom: 32px;
            opacity: 0.85;
        }

        .hero-ctas {
            display: flex;
            gap: 16px;
            align-items: center;
            flex-wrap: wrap;
        }
    }

    .hero-phone {
        flex-shrink: 0;

        iframe {
            border: none;
            width: 364px;
            max-width: 100%;
            height: 653px;
        }
    }
}

/* ── CTA Buttons ── */

.cta-button {
    display: inline-block;
    background-color: var(--linky-red);
    color: white;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(219, 62, 37, 0.3);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    text-decoration: none;

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(219, 62, 37, 0.4);
        color: white;
    }

    &:visited {
        color: white;
    }
}

.cta-ghost {
    display: inline-block;
    color: var(--linky-dark-blue);
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    border: 2px solid var(--linky-dark-blue);
    border-radius: 8px;
    background: transparent;
    text-decoration: none;
    transition: background-color 0.2s ease;

    &:hover {
        background-color: rgba(0, 62, 125, 0.08);
    }

    &:visited {
        color: var(--linky-dark-blue);
    }
}

/* ── Section headings ── */

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--linky-dark-blue);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--linky-dark-blue);
    opacity: 0.65;
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}

/* ── Showcase ── */

.showcase {
    padding: 64px 0 0 0;
    width: 100%;
    margin: 0 auto;
}

.samples {
    margin-top: 16px;

    iframe {
        display: block;
        border: none;
        width: 100%;
        height: 470px;
    }
}

/* ── Features grid ── */

.features-section {
    padding: 64px 20px;
    max-width: 960px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    border: 1px solid rgba(0, 62, 125, 0.08);
    border-radius: 12px;
    padding: 32px 24px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

    &:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
        color: var(--linky-red);
    }

    h3 {
        color: var(--linky-dark-blue);
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0 0 8px;
    }

    p {
        color: var(--linky-dark-blue);
        opacity: 0.7;
        font-size: 1rem;
        line-height: 1.5;
        margin: 0;
    }
}

/* ── Pricing ── */

.pricing-section {
    padding: 64px 20px;
    max-width: 1024px;
    margin: 0 auto;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    flex: 1;
    max-width: 320px;
    background: white;
    border: 2px solid rgba(0, 62, 125, 0.08);
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;

    &.featured {
        border-color: var(--linky-red);

        .pricing-badge {
            display: block;
        }
    }

    .pricing-badge {
        display: none;
        position: absolute;
        top: -14px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--linky-red);
        color: white;
        font-size: 0.8rem;
        font-weight: 700;
        padding: 4px 16px;
        border-radius: 20px;
        white-space: nowrap;
    }

    .pricing-plan-name {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--linky-dark-blue);
        margin: 0 0 8px;
    }

    .pricing-price {
        font-size: 2rem;
        font-weight: 700;
        color: var(--linky-red);
        margin: 0 0 4px;
    }

    .pricing-period {
        font-size: 0.9rem;
        color: var(--linky-dark-blue);
        opacity: 0.5;
        margin: 0 0 24px;
    }

    .pricing-features {
        list-style: none;
        padding: 0;
        margin: 0 0 24px;
        flex-grow: 1;

        li {
            position: relative;
            padding-left: 28px;
            margin-bottom: 12px;
            font-size: 1rem;
            color: var(--linky-dark-blue);
            line-height: 1.4;

            &::before {
                content: '';
                position: absolute;
                left: 0;
                top: 4px;
                width: 18px;
                height: 18px;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23db3e25' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
                background-size: contain;
                background-repeat: no-repeat;
            }
        }
    }

    .pricing-cta {
        margin-top: auto;
        text-align: center;
    }

    .pricing-cta .cta-button {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
        font-size: 1rem;
    }

    .pricing-cta .cta-button.secondary {
        background-color: transparent;
        color: var(--linky-red);
        border: 2px solid var(--linky-red);
        box-shadow: none;

        &:hover {
            background-color: rgba(219, 62, 37, 0.06);
            transform: translateY(-2px);
        }
    }
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
    padding: 20px 24px;
    background: rgba(151, 213, 238, 0.15);
    border-radius: 12px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;

    p {
        margin: 0;
        font-size: 1.05rem;
        color: var(--linky-dark-blue);
        line-height: 1.5;
    }

    strong {
        color: var(--linky-red);
    }
}

/* ── How it works ── */

.how-it-works {
    padding: 64px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 48px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: rgba(0, 62, 125, 0.12);
}

.step {
    text-align: center;
    flex: 1;
    position: relative;

    .step-number {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: var(--linky-red);
        color: white;
        font-size: 1.5rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        position: relative;
        z-index: 1;
    }

    h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--linky-dark-blue);
        margin: 0 0 8px;
    }

    p {
        font-size: 0.95rem;
        color: var(--linky-dark-blue);
        opacity: 0.65;
        margin: 0;
        line-height: 1.4;
    }
}

/* ── Video ── */

.video-section {
    padding: 32px 20px 64px;
    max-width: 680px;
    margin: 0 auto;
}

.video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);

    video {
        width: 100%;
        height: auto;
        display: block;
        background-color: black;
    }
}

/* ── Final CTA banner ── */

.cta-banner {
    background-color: var(--linky-light-blue);
    padding: 80px 20px;
    text-align: center;
    clip-path: ellipse(85% 100% at 50% 100%);

    h2 {
        font-size: 2.2rem;
        color: var(--linky-dark-blue);
        margin: 0 0 12px;
    }

    p {
        font-size: 1.15rem;
        color: var(--linky-dark-blue);
        opacity: 0.7;
        margin: 0 0 32px;
    }
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .hero-wrapper {
        clip-path: ellipse(120% 100% at 50% 0%);
    }

    .hero {
        flex-direction: column;
        gap: 24px;
        padding-top: 40px;

        .hero-text {
            text-align: center;

            h1 {
                font-size: 2.5rem;
                text-align: center;
            }

            p {
                max-width: 100%;
                margin-left: auto;
                margin-right: auto;
            }

            .hero-ctas {
                justify-content: center;
            }
        }
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        max-width: 400px;
        width: 100%;
    }

    .steps::before {
        display: none;
    }

    .steps {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    .cta-banner {
        clip-path: ellipse(150% 100% at 50% 100%);
    }
}

@media (max-width: 480px) {
    .hero-wrapper {
        clip-path: ellipse(160% 100% at 50% 0%);
        padding-bottom: 60px;
    }

    .hero {
        .hero-text h1 {
            font-size: 2rem;
        }

        .hero-phone {
            margin-left: -20px;
            margin-right: -20px;

            iframe {
                transform: scale(0.8);
                margin-top: -65px;
                margin-bottom: -65px;
            }
        }
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .cta-banner {
        clip-path: none;
        padding: 48px 20px;

        h2 {
            font-size: 1.8rem;
        }
    }
}

/* ── Footer override ── */
footer {
    margin-top: 0;
}
