.cost-main {
    color: #152943;
    background: #f5f2e9;
}

.cost-main > article > section,
.cost-intro {
    padding-block: clamp(48px, 6vw, 88px);
}

.cost-main .cost-intro {
    padding-top: calc(var(--header-height) + clamp(32px, 4.6vw, 66px));
}

.cost-intro,
.cost-cta,
.cost-section-heading {
    text-align: center;
}

.cost-intro .page-intro-title {
    max-width: 970px;
    margin-inline: auto;
    font-size: clamp(2.2rem, 5.4vw, 4.5rem);
    text-wrap: balance;
}

.cost-intro .page-intro-title > span {
    display: inline;
}

.cost-main .page-intro-lead,
.cost-main .page-intro-actions {
    margin-inline: auto;
}

.cost-main .page-intro-lead {
    max-width: 65ch;
    text-wrap: pretty;
}

.cost-intro .page-intro-lead strong {
    color: #f2d28c;
}

.cost-main :is(section[id], .cost-comparison .page-container[id]) {
    scroll-margin-top: calc(var(--header-height) + 14px);
}

.cost-byline {
    margin: 0 0 24px;
    color: #6b4c12;
    font-size: .84rem;
    font-weight: 650;
}

.cost-byline time {
    display: inline-block;
}

.cost-main h2 {
    margin: 0 0 14px;
    font-size: clamp(1.65rem, 3.5vw, 2.55rem);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.12;
    text-wrap: balance;
}

.cost-section-lead {
    max-width: 66ch;
    margin: 0 auto 26px;
    color: #3b4f67;
    text-wrap: pretty;
}

.cost-plan {
    background: #fffaf1;
}

.cost-grid,
.cost-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.1vw, 30px);
}

.cost-grid {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cost-inclusions > li {
    padding: 18px 0 0;
    border-top: 2px solid #a88445;
}

.cost-inclusions h3,
.cost-case h3 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 800;
    line-height: 1.3;
}

.cost-inclusions p,
.cost-case p {
    margin: 8px 0 0;
    color: #344b63;
    line-height: 1.6;
}

.cost-project {
    background: #fff;
}

.cost-case {
    overflow: hidden;
    border: 1px solid #ccd5df;
    border-radius: 10px;
    background: #fffaf1;
}

.cost-case img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center top;
    border-bottom: 1px solid #ccd5df;
}

.cost-case-copy {
    padding: clamp(15px, 2vw, 24px);
}

.cost-project-action {
    margin: 18px 0 0;
    text-align: center;
}

.cost-project-action .cost-text-action,
.cost-case .cost-text-action {
    text-decoration-skip-ink: none;
}

.cost-option {
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 2vw, 30px);
    background: #fff;
    border: 1px solid #cbd4df;
    border-top: 4px solid #263f5e;
    border-radius: 10px;
}

.cost-option--managed {
    background: #fffaf0;
    border-top-color: #a47b29;
}

.cost-option h3 {
    margin: 0 0 4px;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.cost-provider {
    margin: 0;
    color: #3b4f67;
    font-size: .9rem;
}

.cost-price {
    display: grid;
    align-content: start;
    gap: 4px;
    margin: 16px 0 4px;
    padding: clamp(12px, 1.45vw, 20px);
    border: 1px solid #d5dfe8;
    border-radius: 8px;
    background: #f4f6f8;
    line-height: 1.4;
}

.cost-option--managed .cost-price {
    border-color: #dbca9f;
    background: #f4ead1;
}

.cost-price-label {
    color: #43566d;
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cost-price strong {
    font-size: clamp(1.85rem, 3.2vw, 3rem);
    font-weight: 850;
    letter-spacing: -.05em;
    line-height: 1.08;
}

.cost-price-terms {
    font-size: .92rem;
    font-weight: 750;
}

.cost-price-note {
    color: #344b63;
    font-size: .84rem;
}

.cost-option dl {
    margin: 0 0 14px;
}

.cost-option dt {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid #cbd4df;
    font-size: .94rem;
    font-weight: 800;
}

.cost-option dd {
    margin: 4px 0 0;
    color: #344b63;
    font-size: .91rem;
    line-height: 1.55;
}

.cost-source {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 14px;
    margin: auto 0 0;
    font-size: .85rem;
}

.cost-main :is(.cost-source a, .cost-text-action) {
    display: inline-block;
    min-height: 44px;
    align-content: center;
    color: #253f60;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.cost-main :is(.cost-source a, .cost-text-action):focus-visible {
    outline: 2px solid #253f60;
    outline-offset: 3px;
}

@supports (grid-template-rows: subgrid) {
    @media (min-width: 901px) {
        .cost-options {
            row-gap: 0;
        }

        .cost-option {
            display: grid;
            grid-row: span 8;
            grid-template-rows: subgrid;
        }

        .cost-option dl {
            display: grid;
            grid-row: span 4;
            grid-template-rows: subgrid;
        }
    }
}

@media (max-width: 900px) {
    .cost-options {
        grid-template-columns: minmax(0, 1fr);
        max-width: 660px;
        margin-inline: auto;
    }
}

@media (max-width: 760px) {
    .cost-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
        margin-inline: auto;
    }
}

@media (max-width: 460px) {
    .cost-main .page-intro-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}
