/* Conven Studio custom development page. */
.custom-main {
    width: 100%;
    padding-top: 56px;
}

.custom-hero {
    padding-top: clamp(76px, 9vw, 112px);
    padding-bottom: clamp(52px, 7vw, 76px);
}

.custom-hero h1 {
    max-width: 720px;
    font-size: clamp(48px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.custom-hero-description {
    max-width: 650px;
    margin-top: 22px;
    color: var(--text-secondary);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.6;
    text-wrap: pretty;
}

.custom-scope,
.custom-process {
    padding-top: 52px;
    padding-bottom: 60px;
}

.custom-scope {
    padding-top: 0;
}

.custom-section-heading h2 {
    max-width: 750px;
    color: var(--text-primary);
    font-size: clamp(32px, 4.6vw, 52px);
    line-height: 1.16;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.custom-scope-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
    border-top: 1px solid var(--border);
}

.custom-scope-item {
    min-width: 0;
    padding: 20px 24px 0 0;
}

.custom-scope-item + .custom-scope-item {
    padding-left: 24px;
    border-left: 1px solid var(--border);
}

.custom-scope-item .custom-item-title {
    color: var(--text-primary);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 650;
    line-height: 1.3;
}

.custom-scope-item p:not(.custom-item-title),
.custom-process-list p:not(.custom-item-title),
.custom-contact-intro p {
    margin-top: 7px;
    color: color-mix(in srgb, var(--text-primary) 72%, var(--bg));
    font-size: 15px;
    line-height: 1.5;
}

.custom-process {
    border-top: 1px solid var(--border);
}

.custom-process-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
    padding: 0;
    list-style: none;
    counter-reset: custom-step;
}

.custom-process-list li {
    min-width: 0;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    counter-increment: custom-step;
}

.custom-process-list li::before {
    display: block;
    margin-bottom: 13px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    content: counter(custom-step, decimal-leading-zero);
}

.custom-process-list .custom-item-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
}

.custom-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: clamp(34px, 5vw, 56px);
    margin-top: 0;
    margin-bottom: 56px;
    padding-top: 42px;
    padding-bottom: 42px;
    border-top: 1px solid var(--border);
    scroll-margin-top: 76px;
}

.custom-contact-intro h2 {
    color: var(--text-primary);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.18;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.custom-contact-intro p {
    max-width: 34ch;
    margin-top: 10px;
}

.custom-contact-details {
    border-top: 1px solid var(--border);
}

.custom-contact .contact-row {
    min-height: 64px;
    padding: 10px 0;
}

.custom-contact .contact-label {
    color: color-mix(in srgb, var(--text-primary) 70%, var(--bg));
}

.custom-contact .contact-copy:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .custom-hero {
        padding-top: clamp(28px, 5svh, 44px);
        padding-bottom: 20px;
        text-align: center;
    }

    .custom-hero h1,
    .custom-hero-description {
        margin-inline: auto;
    }

    .custom-hero h1 {
        font-size: clamp(34px, 8vw, 44px);
    }

    .custom-hero-description {
        max-width: 38ch;
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.45;
    }

    .custom-section-heading h2,
    .custom-contact-intro h2 {
        max-width: 100%;
        margin-inline: auto;
        text-align: center;
    }

    .custom-contact-intro p {
        margin-inline: auto;
        text-align: center;
    }

    .custom-process-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .custom-scope,
    .custom-process {
        padding-top: 40px;
        padding-bottom: 46px;
    }

    .custom-scope {
        padding-top: 0;
    }

    .custom-scope-list {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .custom-scope-item,
    .custom-scope-item + .custom-scope-item {
        padding: 17px 0 19px;
        border-left: 0;
    }

    .custom-scope-item + .custom-scope-item {
        border-top: 1px solid var(--border);
    }

    .custom-process-list {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 22px;
    }

    .custom-process-list li {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 3px;
        padding: 16px 0;
    }

    .custom-process-list li::before {
        grid-row: 1 / 3;
        margin: 2px 0 0;
    }

    .custom-process-list .custom-item-title,
    .custom-process-list p:not(.custom-item-title) {
        grid-column: 2;
        margin-top: 0;
    }

    .custom-contact {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 0;
        margin-bottom: 40px;
        padding-top: 40px;
        padding-bottom: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
