/* Spacing after conversion ideas */

.conversion-ideas {
    padding-bottom: 40px;
}

/* How it works */

.how-it-works {
    display: block;
    min-height: 0;
    padding: 48px clamp(28px, 5vw, 96px) 80px;
    border: 0;
    background: #fff;
    color: #171717;
}

.how-it-works__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    width: 100%;
    margin: 0;
    align-items: center;
    gap: clamp(64px, 8vw, 150px);
}

/* Left: heading and copy */

.how-it-works__intro {
    min-width: 0;
    max-width: 580px;
    margin: 0;
    text-align: left;
}

.how-it-works h2 {
    margin: 0;
    font-size: clamp(42px, 4.2vw, 68px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.05em;
    text-align: left;
}

.how-it-works__highlight {
    display: inline;
    padding: 0;
    background: none;
    text-decoration-line: underline;
    text-decoration-color: var(--colour-yellow);
    text-decoration-thickness: 4px;
    text-underline-offset: 0.14em;
    text-decoration-skip-ink: auto;
}

.how-it-works__copy {
    max-width: 480px;
    margin-top: 36px;
}

.how-it-works__copy p {
    margin: 0;
    color: #626262;
    font-size: 17px;
    line-height: 1.85;
}

.how-it-works__copy p + p {
    margin-top: 20px;
}

.how-it-works__button {
    min-height: 54px;
    margin-top: 30px;
    padding-inline: 30px;
}

/* Right: four stacked stages */

.how-it-works__steps {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid #dedede;
    list-style: none;
}

.process-step {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 28px 0 30px;
    align-items: start;
    gap: 26px;
    border-bottom: 1px solid #dedede;
    transition: border-bottom-color 180ms ease;
}

.process-step__number {
    display: block;
    padding-top: 2px;
    color: var(--colour-yellow);
    font-size: 60px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.065em;
    font-variant-numeric: lining-nums tabular-nums;
}

.process-step__content {
    min-width: 0;
}

.process-step h3 {
    margin: 0 0 12px;
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.035em;
    text-align: left;
}

.process-step p {
    max-width: 560px;
    margin: 0;
    color: #626262;
    font-size: 16px;
    line-height: 1.85;
    text-align: left;
}

@media (hover: hover) and (pointer: fine) {
    .process-step:hover {
        border-bottom-color: var(--colour-yellow);
    }
}

/* Tablet */

@media (min-width: 768px) and (max-width: 1099px) {
    .conversion-ideas {
        padding-bottom: 32px;
    }

    .how-it-works {
        padding: 40px 40px 72px;
    }

    .how-it-works__inner {
        gap: 40px;
    }

    .how-it-works h2 {
        font-size: 44px;
    }

    .how-it-works__copy p {
        font-size: 16px;
    }

    .process-step {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 18px;
        padding-block: 24px;
    }

    .process-step__number {
        font-size: 44px;
    }

    .process-step h3 {
        font-size: 24px;
    }

    .process-step p {
        font-size: 15px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .conversion-ideas {
        padding-bottom: 28px;
    }

    .how-it-works {
        padding: 32px 24px 64px;
    }

    .how-it-works__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
    }

    .how-it-works__intro {
        max-width: 560px;
    }

    .how-it-works h2 {
        font-size: clamp(38px, 7vw, 52px);
        line-height: 1.22;
    }

    .how-it-works__highlight {
        text-decoration-thickness: 3px;
    }

    .how-it-works__copy {
        max-width: 520px;
        margin-top: 30px;
    }

    .how-it-works__copy p {
        font-size: 16px;
        line-height: 1.8;
    }

    .how-it-works__copy p + p {
        margin-top: 16px;
    }

    .how-it-works__button {
        margin-top: 26px;
    }

    .process-step {
        grid-template-columns: 52px minmax(0, 1fr);
        padding-block: 24px;
        gap: 18px;
    }

    .process-step__number {
        font-size: 48px;
    }

    .process-step h3 {
        margin-bottom: 12px;
        font-size: 25px;
    }

    .process-step p {
        font-size: 15px;
        line-height: 1.8;
    }
}

@media (max-width: 359px) {
    .how-it-works {
        padding-inline: 20px;
    }

    .how-it-works h2 {
        font-size: 35px;
    }

    .process-step {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
    }

    .process-step__number {
        font-size: 42px;
    }

    .process-step h3 {
        font-size: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-step {
        transition: none;
    }
}