@charset "utf-8";

/*
    A page under a feature (/features/{parent}/{key}).
    ? Sections only - the hero, tile cards, buttons and tier badge are the shared ones.
*/

/*  Hero with a picture - the shared hero (css/shared/site.css) is centred copy; this is the
    ? two-column variant page-hero.php switches to when it is given $hero_image. */
.site-hero-split .content-container {
    display: flex;
    align-items: center;
    gap: 48px;
    text-align: left;
}

.site-hero-split .site-hero-copy {
    flex: 1 1 0;
    min-width: 0;
}

.site-hero-split .site-hero-title {
    max-width: none;
    margin-left: 0;
}

.site-hero-split .site-hero-lede {
    margin-left: 0;
}

.site-hero-split .site-hero-actions {
    justify-content: flex-start;
}

.site-hero-figure {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.site-hero-figure img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 899px) {

    .site-hero-split .content-container {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .site-hero-split .site-hero-title,
    .site-hero-split .site-hero-lede {
        margin-left: auto;
    }

    .site-hero-split .site-hero-actions {
        justify-content: center;
    }

    .site-hero-figure {
        max-width: 480px;
    }
}

.sub-highlights {
    padding: 48px 0 16px;
}

.sub-badge {
    margin: 0 0 20px;
}

.sub-section {
    padding: 56px 0;
}

.sub-section-wash {
    background-color: var(--mp-wash);
}

.sub-section-lede {
    font-size: 17px;
    color: var(--mp-muted);
    max-width: 68ch;
    margin: 0 0 28px;
}

/*  ? auto-fit so eight capability cards fill the row instead of stranding one on its own */
.sub-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.sub-card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.sub-card {
    background-color: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    padding: 24px;
}

.sub-card-icon {
    font-size: 22px;
    color: var(--mp-red);
    display: block;
    margin-bottom: 14px;
}

.sub-card-title {
    font-size: 17px;
    margin: 0 0 8px;
}

.sub-card-text {
    font-size: 15px;
    color: var(--mp-muted);
    margin: 0;
}

/*  A product photo heading a card - the photos are square on white, so they sit flush in the card
    ? and are capped rather than stretched to a wide column */
.sub-card-photo {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0 auto 16px;
}

/*  Section intro with a picture beside it - copy left, picture right, stacked on a phone */
.sub-intro-split {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 28px;
}

.sub-intro-split .sub-intro-copy {
    flex: 1 1 0;
    min-width: 0;
}

.sub-intro-split .sub-section-lede {
    margin-bottom: 0;
}

.sub-intro-figure {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.sub-intro-figure img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin-left: auto;
}

@media (max-width: 899px) {

    .sub-intro-split {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .sub-intro-figure img {
        margin: 0 auto;
    }
}

/*  Numbered steps - the number is a counter, so the markup stays an ordered list */
.sub-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    counter-reset: sub-step;
}

.sub-steps-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sub-steps-4 {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.sub-steps li {
    counter-increment: sub-step;
    background-color: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    padding: 24px;
}

.sub-steps li::before {
    content: counter(sub-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--mp-red);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
}

.sub-step-title {
    font-size: 17px;
    margin: 0 0 8px;
}

.sub-plan {
    text-align: center;
}

.sub-plan .sub-section-lede {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {

    .sub-section {
        padding: 40px 0;
    }
}
