.detail-section {
    padding: 105px max(24px, calc((100vw - var(--max))/2));
    scroll-margin-top: 30px;
    border-top: 1px solid #dbe0e4
}

.detail-wrap {
    max-width: var(--max);
    margin: auto
}

.detail-intro {
    max-width: 820px;
    margin-bottom: 50px
}

.detail-intro>p:not(.eyebrow) {
    font-size: 1.08rem;
    color: #53616d
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 35px
}

.detail-grid article {
    padding: 32px;
    border: 1px solid #d7dde1;
    background: #fff
}

.detail-grid p,
.detail-grid li {
    color: #4f5d68
}

.detail-grid li {
    margin-bottom: 8px
}

.detail-grid ol {
    padding-left: 22px
}

.alternate {
    background: var(--mist)
}

.curriculum {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px
}

.curriculum>div {
    background: #fff;
    padding: 32px;
    border-top: 3px solid var(--red)
}

.curriculum ul,
.check-groups ul {
    padding-left: 20px
}

.curriculum li,
.check-groups li {
    margin-bottom: 8px
}

.how-it-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0 38px
}

.how-it-works>div {
    padding: 24px 0;
    border-top: 1px solid #aeb8bf
}

.dark-detail {
    background: #0d1d2c;
    color: #d7e0e6
}

.dark-detail h2,
.dark-detail h3 {
    color: #fff
}

.dark-detail .detail-intro>p:not(.eyebrow) {
    color: #c5d0d7
}

.check-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px
}

.check-groups article {
    padding: 28px;
    background: #ffffff0b;
    border: 1px solid #ffffff1b
}

.check-groups li {
    color: #c9d3d9
}

.prevention {
    border-left: 4px solid var(--gold);
    padding: 22px 28px;
    background: #ffffff0a;
    margin-bottom: 34px
}

.prevention p {
    margin-bottom: 0
}

@media(max-width:900px) {
    .detail-section {
        padding: 78px 24px
    }

    .detail-grid,
    .curriculum,
    .how-it-works {
        grid-template-columns: 1fr
    }

    .check-groups {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:560px) {
    .detail-section {
        padding: 68px 17px
    }

    .detail-grid article,
    .curriculum>div,
    .check-groups article {
        padding: 24px
    }

    .check-groups {
        grid-template-columns: 1fr
    }

    .detail-intro {
        margin-bottom: 34px
    }
}

/* Prominent brand treatment */
.topbar {
    height: 112px;
    background: linear-gradient(90deg, rgba(7, 18, 29, .98), rgba(11, 24, 37, .86));
    border-bottom: 3px solid var(--red);
    padding-top: 14px;
    padding-bottom: 14px
}

.brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 84px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
    overflow: hidden
}

.brand:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: var(--red)
}

.brand img {
    width: 218px;
    height: 68px;
    object-fit: contain;
    background: #fff
}

.hero-copy {
    margin-top: 125px
}

footer {
    grid-template-columns: 240px 1fr 1fr auto;
    border-top: 5px solid var(--red)
}

footer img {
    width: 225px;
    padding: 10px 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28)
}

@media(max-width:1050px) {
    .topbar nav {
        gap: 15px
    }

    .topbar nav a {
        font-size: .78rem
    }

    .brand {
        width: 220px
    }

    .brand img {
        width: 194px
    }
}

@media(max-width:900px) {
    .topbar {
        height: 92px
    }

    .topbar nav {
        top: 92px
    }

    .brand {
        width: 190px;
        height: 66px;
        padding: 6px 12px
    }

    .brand img {
        width: 166px;
        height: 54px
    }

    .hero-copy {
        margin-top: 105px
    }

    footer {
        grid-template-columns: 1fr
    }

    footer img {
        width: 220px
    }
}

@media(max-width:560px) {
    .brand {
        width: 174px;
        height: 62px
    }

    .brand img {
        width: 152px;
        height: 50px
    }

    .topbar {
        padding-left: 17px;
        padding-right: 17px
    }

    .hero-copy {
        margin-top: 95px
    }
}

/* Expanded reversed masthead: white wordmark and red compass on black */
.topbar {
    height: 146px;
    background: #050505;
    border-bottom: 4px solid var(--red);
    gap: 26px
}

.brand {
    width: 350px;
    height: 126px;
    padding: 0;
    background: #050505;
    border: 0;
    box-shadow: none;
    overflow: visible;
    flex: 0 0 350px
}

.brand:after {
    display: none
}

.brand img {
    width: 338px;
    height: 124px;
    object-fit: contain;
    background: #050505;
    filter: invert(1) hue-rotate(180deg) contrast(1.12)
}

.topbar nav {
    margin-left: auto
}

.hero-copy {
    margin-top: 168px
}

footer {
    grid-template-columns: 315px 1fr 1fr auto;
    background: #050505
}

footer img {
    width: 300px;
    padding: 0;
    background: #050505;
    box-shadow: none;
    filter: invert(1) hue-rotate(180deg) contrast(1.12)
}

@media(max-width:1120px) {
    .topbar {
        height: 126px
    }

    .brand {
        width: 285px;
        height: 108px;
        flex-basis: 285px
    }

    .brand img {
        width: 278px;
        height: 106px
    }

    .topbar nav {
        gap: 12px
    }

    .topbar nav a {
        font-size: .74rem
    }

    .hero-copy {
        margin-top: 145px
    }
}

@media(max-width:900px) {
    .topbar {
        height: 110px
    }

    .topbar nav {
        top: 110px
    }

    .brand {
        width: 245px;
        height: 94px;
        flex-basis: 245px
    }

    .brand img {
        width: 238px;
        height: 92px
    }

    .hero-copy {
        margin-top: 128px
    }

    footer {
        grid-template-columns: 1fr
    }

    footer img {
        width: 285px
    }
}

@media(max-width:560px) {
    .topbar {
        height: 100px
    }

    .topbar nav {
        top: 100px
    }

    .brand {
        width: 218px;
        height: 84px;
        flex-basis: 218px
    }

    .brand img {
        width: 212px;
        height: 82px
    }

    .hero-copy {
        margin-top: 116px
    }

    footer img {
        width: 250px
    }
}

/* Wide supplied wordmark */
.topbar {
    height: 126px;
    background: #050505
}

.brand {
    width: 410px;
    height: 104px;
    flex-basis: 410px;
    padding: 8px 14px;
    background: #fff;
    border: 0;
    box-shadow: none;
    overflow: hidden
}

.brand img {
    width: 382px;
    height: auto;
    max-height: 92px;
    object-fit: contain;
    background: #fff;
    filter: none
}

.hero-copy {
    margin-top: 145px
}

footer {
    grid-template-columns: 370px 1fr 1fr auto
}

footer img {
    width: 350px;
    height: auto;
    padding: 12px 15px;
    background: #fff;
    filter: none
}

@media(max-width:1160px) {
    .brand {
        width: 345px;
        flex-basis: 345px
    }

    .brand img {
        width: 320px
    }

    .topbar nav {
        gap: 11px
    }

    .topbar nav a {
        font-size: .72rem
    }
}

@media(max-width:980px) {
    .topbar {
        height: 106px
    }

    .topbar nav {
        top: 106px
    }

    .brand {
        width: 300px;
        height: 84px;
        flex-basis: 300px;
        padding: 6px 10px
    }

    .brand img {
        width: 280px;
        max-height: 74px
    }

    .hero-copy {
        margin-top: 124px
    }
}

@media(max-width:900px) {
    footer {
        grid-template-columns: 1fr
    }

    footer img {
        width: 330px
    }
}

@media(max-width:560px) {
    .topbar {
        height: 94px
    }

    .topbar nav {
        top: 94px
    }

    .brand {
        width: 245px;
        height: 72px;
        flex-basis: 245px
    }

    .brand img {
        width: 226px;
        max-height: 62px
    }

    .hero-copy {
        margin-top: 108px
    }

    footer img {
        width: min(100%, 300px)
    }
}

/* Services and pricing */
.pricing-section {
    padding: 105px max(24px, calc((100vw - var(--max))/2));
    background: var(--navy);
    color: #dce4e9;
    scroll-margin-top: 24px
}

.pricing-heading {
    max-width: var(--max);
    margin: 0 auto 48px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: end
}

.pricing-heading h2 {
    color: #fff;
    margin-bottom: 0
}

.pricing-heading>p {
    font-size: 1.05rem;
    color: #c5d0d7;
    margin-bottom: 8px
}

.price-cards {
    max-width: var(--max);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: 34px;
    background: #fff;
    color: var(--ink);
    border-top: 5px solid #87929b
}

.price-card.featured-price {
    border-top-color: var(--red)
}

.price-label {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .76rem;
    font-weight: 800;
    color: var(--red)
}

.price-card h3 {
    font-size: 1.65rem;
    min-height: 58px
}

.price-card h3 strong {
    font-size: 2.55rem;
    color: var(--red)
}

.price-card h3 small {
    font: 700 .82rem Arial;
    color: #52616d;
    margin-left: 5px;
    text-transform: uppercase
}

.price-summary {
    color: #53616c;
    min-height: 82px
}

.price-card ul {
    padding-left: 20px;
    margin-bottom: 24px
}

.price-card li {
    margin-bottom: 8px
}

.price-note {
    padding: 18px;
    background: var(--mist);
    margin-top: auto;
    margin-bottom: 22px
}

.price-note strong,
.price-note span {
    display: block
}

.price-note strong {
    color: var(--red);
    margin-bottom: 4px
}

.price-note span {
    font-size: .9rem;
    color: #52616d
}

.price-card .button {
    align-self: flex-start
}

.pricing-disclaimer {
    max-width: var(--max);
    margin: 24px auto 0;
    color: #aebcc6;
    font-size: .85rem
}

@media(max-width:980px) {
    .pricing-heading {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .price-cards {
        grid-template-columns: 1fr
    }

    .price-card h3,
    .price-summary {
        min-height: 0
    }
}

@media(max-width:560px) {
    .pricing-section {
        padding: 72px 17px
    }

    .price-card {
        padding: 26px
    }
}

.survey-rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 20px
}

.survey-rates>div {
    padding: 15px 12px;
    background: var(--navy);
    color: #fff;
    border-bottom: 4px solid var(--red);
    text-align: center
}

.survey-rates span,
.survey-rates small {
    display: block
}

.survey-rates span {
    min-height: 42px;
    font-size: .78rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 800;
    color: #d4dde3
}

.survey-rates strong {
    display: block;
    font: 700 2.35rem/1 Georgia;
    color: #fff;
    margin: 7px 0 3px
}

.survey-rates small {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #adbcc6
}

.survey-price-card .price-summary {
    min-height: auto
}

@media(max-width:560px) {
    .survey-rates {
        grid-template-columns: 1fr
    }

    .survey-rates span {
        min-height: 0
    }
}

.card {
    display: flex;
    flex-direction: column
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 6px
}

.card-actions a {
    font-weight: 800;
    text-decoration: none;
    color: var(--red)
}

.card-actions .pricing-link {
    padding: 8px 11px;
    border: 1px solid var(--red);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap
}

.card-actions .pricing-link:hover {
    background: var(--red);
    color: #fff
}

@media(max-width:1120px) {
    .card-actions {
        align-items: flex-start;
        flex-direction: column
    }

    .card-actions .pricing-link {
        margin-top: 3px
    }
}

.engine-price-box {
    padding: 18px;
    background: var(--mist);
    margin-top: auto;
    margin-bottom: 22px
}

.engine-price-box h4 {
    margin: 0 0 12px;
    color: var(--red);
    font: 700 1.05rem Georgia
}

.engine-price-box>div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid #d3dade
}

.engine-price-box strong {
    font-size: 1rem;
    color: var(--navy)
}

.engine-price-box strong small {
    display: block;
    font: 700 .68rem Arial;
    text-transform: uppercase;
    color: #64727d
}

.engine-price-box span {
    font-size: .84rem;
    line-height: 1.4;
    color: #52616d
}

.engine-detail-prices {
    margin: 20px 0
}

.engine-detail-prices p {
    padding: 14px 16px;
    margin: 0 0 10px;
    background: var(--mist);
    border-left: 3px solid var(--red)
}

@media(max-width:560px) {
    .engine-price-box>div {
        grid-template-columns: 1fr;
        gap: 4px
    }

    .engine-price-box strong small {
        display: inline;
        margin-left: 3px
    }
}