/* Rendered output of the blog content blocks.
   Loaded by the editor preview AND the public post page, so both look the same. */

.cm-content {
    /* overridden per post by the editor's Design settings (Blocks.themeStyle) */
    --cmf-heading: inherit;
    --cmf-body: inherit;
    --cm-heading-color: #003557;
    --cm-accent: #f74254;
    /* the site's own button navy, so a block button matches the header and
       the course pages (.btn.custom-primary-btn in the frontend stylesheet) */
    --cm-btn: #093a5a;
    --cm-gutter: 40px;
    --cm-rule: rgba(0, 0, 0, .14);
    --cm-rule-strong: rgba(0, 0, 0, .3);

    color: #273041;
    font-family: var(--cmf-body);
    font-size: 17px;
    line-height: 1.75;
}

.cm-content .cm-block + .cm-block { margin-top: 34px; }

/* a styled block is wrapped in .cm-sec, so spacing has to work either way */
.cm-content > .cm-sec + .cm-sec,
.cm-content > .cm-sec + .cm-block,
.cm-content > .cm-block + .cm-sec { margin-top: 34px; }

/* stacked colour bands butt up against each other, like a landing page */
.cm-content > .cm-sec--filled + .cm-sec--filled { margin-top: 0; }

/* A divider owns the whole gap it makes, so the standard block spacing is
   dropped on both sides of it - "Space (px)" is the number you actually get.
   These come after the rules above and match their specificity, so they win. */
.cm-content > .cm-block + .cm-block--divider,
.cm-content > .cm-sec + .cm-block--divider,
.cm-content > .cm-block + .cm-sec--divider,
.cm-content > .cm-sec + .cm-sec--divider,
.cm-content > .cm-block--divider + .cm-block,
.cm-content > .cm-block--divider + .cm-sec,
.cm-content > .cm-sec--divider + .cm-block,
.cm-content > .cm-sec--divider + .cm-sec { margin-top: 0; }

.cm-content p { margin: 0 0 16px; }
.cm-content p:last-child { margin-bottom: 0; }

.cm-content img { max-width: 100%; height: auto; }

.cm-heading {
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--cm-heading-color);
    margin: 0 0 14px;
}

.cm-align--left   { text-align: left; }
.cm-align--center { text-align: center; }
.cm-align--right  { text-align: right; }

/* buttons (used by hero, cta and the buttons block) */

.cm-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.cm-buttons:empty { display: none; }

.cm-align--center .cm-buttons { justify-content: center; }
.cm-align--right .cm-buttons  { justify-content: flex-end; }

.cm-block--buttons .cm-buttons { margin-top: 0; }

.cmb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 1px solid var(--cm-btn);
    border-radius: 6px;
    background: var(--cm-btn);
    color: #fff !important;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, border-color .18s ease,
                box-shadow .18s ease, transform .18s ease;
}

/* the colour swap is the site's own; the lift and shadow are what make the
   press feel answered, and they carry over to every variant below */
.cmb-btn:hover {
    background: #fff;
    color: var(--cm-btn) !important;
    box-shadow: 0 6px 16px rgba(9, 58, 90, .2);
    transform: translateY(-1px);
}

.cmb-btn:active { box-shadow: none; transform: translateY(0); }

.cmb-btn:focus-visible {
    outline: 2px solid var(--cm-btn);
    outline-offset: 2px;
}

.cmb-btn--secondary { background: var(--cm-accent); border-color: var(--cm-accent); }
.cmb-btn--secondary:hover { background: #fff; color: var(--cm-accent) !important; box-shadow: 0 6px 16px rgba(247, 66, 84, .28); }

.cmb-btn--outline { background: #fff; color: var(--cm-btn) !important; }
.cmb-btn--outline:hover { background: var(--cm-btn); color: #fff !important; }

.cmb-btn--link {
    padding: 10px 6px;
    border-color: transparent;
    background: transparent;
    color: var(--cm-btn) !important;
    text-decoration: underline !important;
}

.cmb-btn--link:hover {
    background: transparent;
    border-color: transparent;
    color: var(--cm-accent) !important;
    box-shadow: none;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .cmb-btn { transition-duration: .01ms; }
    .cmb-btn:hover { transform: none; }
}

/* hero */

.cm-block--hero { border-radius: 10px; }

/* only a photo behind the copy needs clipping to the rounded corners; on the
   other layouts the image rounds itself, and a clip here cut into the
   bottom-left corner of a button sitting on the block's lower edge */
.cm-hero--background,
.cm-hero--background-center { overflow: hidden; }

.cm-hero__image {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 10px;
}

/* "Show the whole image": drop the height cap so nothing is cut off */
.cm-hero--fit-contain .cm-hero__image {
    max-height: none;
    height: auto;
    object-fit: contain;
}

.cm-hero--image-top .cm-hero__copy { padding-top: 26px; }
.cm-hero--image-bottom .cm-hero__copy { padding-bottom: 26px; }

.cm-hero__copy.cm-align--center { max-width: 760px; margin-left: auto; margin-right: auto; }

.cm-hero__headline {
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--cm-heading-color);
}

.cm-hero__subheading {
    font-size: 19px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.cm-hero--split,
.cm-hero--split-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cm-hero--split .cm-hero__image,
.cm-hero--split-reverse .cm-hero__image { max-height: 420px; }

.cm-hero--background,
.cm-hero--background-center {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: #003557 no-repeat center center;
    background-size: cover;
    padding: 60px 48px;
}

.cm-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 32, 56, .85) 0%, rgba(0, 32, 56, .45) 100%);
}

.cm-hero--background .cm-hero__copy,
.cm-hero--background-center .cm-hero__copy {
    position: relative;
    max-width: 640px;
}

.cm-hero--background-center { justify-content: center; text-align: center; }
.cm-hero--background-center .cm-hero__overlay { background: rgba(0, 32, 56, .65); }
.cm-hero--background-center .cm-hero__copy { max-width: 760px; }

.cm-hero--background .cm-hero__headline,
.cm-hero--background .cm-hero__subheading,
.cm-hero--background-center .cm-hero__headline,
.cm-hero--background-center .cm-hero__subheading { color: #fff; }

/* over a photo the outline button is the photo showing through, so it has to
   clear the white fill the base style now paints - white on white is invisible */
.cm-hero--background .cmb-btn--outline,
.cm-hero--background-center .cmb-btn--outline {
    background: transparent;
    border-color: #fff;
    color: #fff !important;
}
.cm-hero--background .cmb-btn--outline:hover,
.cm-hero--background-center .cmb-btn--outline:hover { background: #fff; color: #003557 !important; }
.cm-hero--background .cmb-btn--link,
.cm-hero--background-center .cmb-btn--link { color: #fff !important; }

.cm-hero--text .cm-hero__copy { padding: 10px 0; }

/* image / video */

.cm-block--media { margin: 0; }

.cm-media__media { margin: 0; }

.cm-block--image img {
    display: block;
    width: 100%;
    border-radius: 10px;
}

.cm-media--medium .cm-media__media { max-width: 70%; }
.cm-media--small .cm-media__media  { max-width: 45%; }

.cm-align--center .cm-media__media { margin-left: auto; margin-right: auto; }
.cm-align--right .cm-media__media  { margin-left: auto; }

.cm-media--split,
.cm-media--split-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cm-media__copy .cm-heading { margin-bottom: 12px; }
.cm-media__copy .cm-buttons { margin-top: 18px; }

.cm-media__media figcaption {
    margin-top: 10px;
    font-size: 13.5px;
    color: #8b9099;
    text-align: center;
}

/* quote */

.cm-block--quote {
    margin: 0;
    padding: 6px 0 6px 22px;
    border-left: 3px solid var(--cm-accent);
}

.cm-block--quote p {
    font-family: inherit;
    font-size: 22px;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

.cm-block--quote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-style: normal;
    color: #8b9099;
}

/* call to action */

.cm-block--cta {
    padding: 40px 34px;
    border-radius: 10px;
    text-align: center;
    background: #f3f4f6;
}

.cm-block--cta h3 {
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 28px;
    font-weight: 700;
    color: var(--cm-heading-color);
    margin: 0 0 10px;
}

.cm-block--cta p { max-width: 620px; margin: 0 auto; }

.cm-block--cta .cm-buttons { justify-content: center; }

.cm-cta--navy { background: #003557; }
.cm-cta--navy h3, .cm-cta--navy p { color: #fff; }
.cm-cta--navy .cmb-btn { background: #fff; border-color: #fff; color: #003557 !important; }
.cm-cta--navy .cmb-btn--secondary { background: #f74254; border-color: #f74254; color: #fff !important; }
.cm-cta--navy .cmb-btn--outline { background: transparent; color: #fff !important; }
.cm-cta--navy .cmb-btn--link { background: transparent; border-color: transparent; color: #fff !important; }

.cm-cta--accent { background: #f74254; }
.cm-cta--accent h3, .cm-cta--accent p { color: #fff; }
.cm-cta--accent .cmb-btn { background: #fff; border-color: #fff; color: #f74254 !important; }
.cm-cta--accent .cmb-btn--secondary { background: #003557; border-color: #003557; color: #fff !important; }
.cm-cta--accent .cmb-btn--outline { background: transparent; color: #fff !important; }
.cm-cta--accent .cmb-btn--link { background: transparent; border-color: transparent; color: #fff !important; }

/* faq accordion */

.cm-block--faq .cm-heading { margin-bottom: 18px; }

.cm-faq__item {
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    background: #fff;
}

.cm-faq__item + .cm-faq__item { margin-top: 10px; }

.cm-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 17px;
    font-weight: 600;
    color: var(--cm-heading-color);
    cursor: pointer;
    list-style: none;
}

.cm-faq__question::-webkit-details-marker { display: none; }

.cm-faq__icon {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eef3f8;
}

.cm-faq__icon::before,
.cm-faq__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 2px;
    background: #003557;
    transform: translate(-50%, -50%);
}

.cm-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .15s ease; }

.cm-faq__item[open] .cm-faq__icon::after { transform: translate(-50%, -50%) rotate(0); }

.cm-faq__answer {
    padding: 0 20px 18px;
    font-size: 16px;
    color: #374151;
}

/* email signup (lead magnet) */

.cm-block--signup {
    padding: 34px;
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e4e6eb;
}

.cm-signup__copy h3 {
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 26px;
    font-weight: 700;
    color: var(--cm-heading-color);
    margin: 0 0 8px;
}

.cm-signup__copy p { margin: 0; color: #4b5563; }

.cm-signup__form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cm-signup__input {
    flex: 1 1 200px;
    padding: 12px 14px;
    border: 1px solid #d3d7de;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: #fff;
    color: #273041;
}

.cm-signup__input:focus { border-color: #003557; }
.cm-signup__input.is-invalid { border-color: #f74254; }

.cm-signup__form .cmb-btn { flex: 0 0 auto; }

.cm-signup__consent {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: #8b9099;
}

.cm-signup__error { margin: 10px 0 0; font-size: 14px; color: #c0392b; }

.cm-signup__thanks { font-size: 17px; font-weight: 600; color: #003557; margin: 20px 0 14px; }

.cm-signup--navy { background: #003557; border-color: #003557; }
.cm-signup--navy .cm-signup__copy h3,
.cm-signup--navy .cm-signup__copy p,
.cm-signup--navy .cm-signup__thanks { color: #fff; }
.cm-signup--navy .cm-signup__consent { color: rgba(255, 255, 255, .7); }

/* divider */

/* the block IS the gap: its height is the whole space the divider makes and
   the mark sits centred in it. The height comes inline from "Space (px)". */
.cm-block--divider {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

/* translucent, so a rule stays visible on white and on any tinted band;
   .cm-sec--text-light flips both tokens for dark backgrounds */
.cm-divider--line span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--cm-rule);
}

.cm-divider--dots span {
    display: block;
    font-size: 0;
    line-height: 1;
    color: var(--cm-rule-strong);
}

.cm-divider--dots span::after {
    content: "\2022 \2022 \2022";
    font-size: 18px;
    letter-spacing: 10px;
    color: inherit;
}

.cm-divider--space span { display: none; }

/* two columns */

.cm-block--columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.cm-block--columns .cm-heading { font-size: 22px; }

/* video player */

.cm-video__frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.cm-video__frame video,
.cm-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

/* gallery */

.cm-block--gallery { display: grid; gap: 12px; }

.cm-gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cm-gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cm-block--gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* letterboxed rather than uncapped, so the grid stays even */
.cm-gallery--fit-contain img {
    object-fit: contain;
    background: rgba(0, 0, 0, .04);
}

/* ===================================================================
   Section styling - background, width, padding, font. Applied to any
   block through the "Section & typography" group in the editor.
   =================================================================== */

.cm-sec {
    position: relative;
    padding: var(--cm-pad-y, 34px) var(--cm-pad-x, var(--cm-gutter));
    background-repeat: repeat;
}

.cm-sec__inner { position: relative; z-index: 1; }

/* the background colour itself is written inline, from Blocks.backgroundColor */

/* patterns sit above the background colour, under the content */
.cm-sec--pat-blobs::before,
.cm-sec--pat-dots::before,
.cm-sec--pat-grid::before,
.cm-sec--pat-waves::before,
.cm-sec--pat-rings::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: repeat;
}

.cm-sec--pat-blobs::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='%23000' opacity='.055'%3E%3Cpath d='M34 26c30-20 72-8 76 22s-28 46-60 52-54-6-56-30 14-30 40-44z'/%3E%3Cpath d='M156 22c32-6 54 22 44 50s-46 34-68 16-14-48 4-58 14-6 20-8z'/%3E%3Cpath d='M28 148c24-22 66-16 74 12s-22 48-52 54-50-4-54-26 14-26 32-40z'/%3E%3Cpath d='M154 142c30-12 56 10 52 40s-38 38-60 24-12-48 2-58 4-5 6-6z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 240px 240px;
}

.cm-sec--pat-dots::before {
    background-image: radial-gradient(currentColor 1.6px, transparent 1.6px);
    background-size: 22px 22px;
    color: #000;
    opacity: .09;
}

.cm-sec--pat-grid::before {
    background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 36px 36px;
    color: #000;
    opacity: .06;
}

.cm-sec--pat-waves::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20c15-14 30-14 45 0s30 14 45 0 22-10 30-4' fill='none' stroke='%23000' stroke-opacity='.07' stroke-width='3'/%3E%3C/svg%3E");
    background-size: 120px 40px;
}

.cm-sec--pat-rings::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.07' stroke-width='2'%3E%3Ccircle cx='40' cy='40' r='26'/%3E%3Ccircle cx='120' cy='110' r='34'/%3E%3Ccircle cx='128' cy='28' r='14'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 160px 160px;
}

/* on dark bands the pattern has to be light instead */
.cm-sec--text-light.cm-sec--pat-blobs::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='%23fff' opacity='.1'%3E%3Cpath d='M34 26c30-20 72-8 76 22s-28 46-60 52-54-6-56-30 14-30 40-44z'/%3E%3Cpath d='M156 22c32-6 54 22 44 50s-46 34-68 16-14-48 4-58 14-6 20-8z'/%3E%3Cpath d='M28 148c24-22 66-16 74 12s-22 48-52 54-50-4-54-26 14-26 32-40z'/%3E%3Cpath d='M154 142c30-12 56 10 52 40s-38 38-60 24-12-48 2-58 4-5 6-6z'/%3E%3C/g%3E%3C/svg%3E");
}

.cm-sec--text-light.cm-sec--pat-dots::before,
.cm-sec--text-light.cm-sec--pat-grid::before { color: #fff; opacity: .14; }

.cm-sec--text-light.cm-sec--pat-waves::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20c15-14 30-14 45 0s30 14 45 0 22-10 30-4' fill='none' stroke='%23fff' stroke-opacity='.14' stroke-width='3'/%3E%3C/svg%3E");
}

.cm-sec--text-light.cm-sec--pat-rings::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.14' stroke-width='2'%3E%3Ccircle cx='40' cy='40' r='26'/%3E%3Ccircle cx='120' cy='110' r='34'/%3E%3Ccircle cx='128' cy='28' r='14'/%3E%3C/g%3E%3C/svg%3E");
}

/* width: "wide" reaches past the article column, "full" goes edge to edge.
   max() keeps wide inside the viewport once the column is the full width. */
.cm-sec--w-wide {
    margin-left: max(calc(50% - 50vw), calc(-1 * var(--cm-wide, 160px)));
    margin-right: max(calc(50% - 50vw), calc(-1 * var(--cm-wide, 160px)));
}

.cm-sec--w-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* a full-width band keeps its lines centred, or they run the whole screen.
       The Pad steps below are written later, so an explicit Pad wins over this. */
    --cm-pad-x: max(var(--cm-gutter), calc(50vw - 520px));
}

/* a block that is mostly picture bleeds instead of centring - unless the author
   set a Pad, which is a deliberate choice and outranks both */
.cm-sec--w-full.cm-sec--edge:not([class*="cm-sec--pad-"]) {
    --cm-pad-x: 0px;
}

/* padding: each step sets all four sides, so a tall band is not left with
   narrow sides. The custom step reads the two numbers the editor writes
   inline, falling back to the auto values when a box is left empty. */
.cm-sec--pad-none   { --cm-pad-y: 0px;  --cm-pad-x: 0px; }
.cm-sec--pad-s      { --cm-pad-y: 18px; --cm-pad-x: 20px; }
.cm-sec--pad-m      { --cm-pad-y: 40px; --cm-pad-x: 40px; }
.cm-sec--pad-l      { --cm-pad-y: 64px; --cm-pad-x: 56px; }
.cm-sec--pad-xl     { --cm-pad-y: 96px; --cm-pad-x: 72px; }
.cm-sec--pad-custom {
    --cm-pad-y: var(--cm-pad-y-custom, 34px);
    --cm-pad-x: var(--cm-pad-x-custom, var(--cm-gutter));
}

/* On "auto" a section with nothing painted behind it adds no padding of its
   own. Width has a default now, so every block carries a .cm-sec wrapper, and
   an empty wrapper must not put space around a block that asked for none. */
.cm-sec:not(.cm-sec--filled):not([class*="cm-sec--pat-"]):not([class*="cm-sec--pad-"]) {
    --cm-pad-y: 0px;
}

.cm-sec:not(.cm-sec--filled):not([class*="cm-sec--pat-"]):not(.cm-sec--w-full):not([class*="cm-sec--pad-"]) {
    --cm-pad-x: 0px;
}

/* corners */
.cm-sec--r-s { border-radius: 8px; overflow: hidden; }
.cm-sec--r-m { border-radius: 18px; overflow: hidden; }
.cm-sec--r-l { border-radius: 32px; overflow: hidden; }

/* text colour on dark bands */
.cm-sec--text-light,
.cm-sec--text-light p,
.cm-sec--text-light li,
.cm-sec--text-light .cm-hero__subheading,
.cm-sec--text-light .cm-faq__answer,
.cm-sec--text-light .cm-signup__copy p { color: #fff; }

.cm-sec--text-light .cm-heading,
.cm-sec--text-light .cm-hero__headline,
.cm-sec--text-light .cm-card__title,
.cm-sec--text-light .cm-checklist__title,
.cm-sec--text-light .cm-faq__question,
.cm-sec--text-light .cm-block--cta h3,
.cm-sec--text-light .cm-signup__copy h3 { color: #fff; }

.cm-sec--text-light { --cm-rule: rgba(255, 255, 255, .34); --cm-rule-strong: rgba(255, 255, 255, .6); }

.cm-sec--text-light .cmb-btn { background: #fff; border-color: #fff; color: var(--cm-heading-color) !important; }
.cm-sec--text-light .cmb-btn:hover { background: transparent; color: #fff !important; }
.cm-sec--text-light .cmb-btn--secondary { background: var(--cm-accent); border-color: var(--cm-accent); color: #fff !important; }
.cm-sec--text-light .cmb-btn--outline,
.cm-sec--text-light .cmb-btn--link { background: transparent; border-color: #fff; color: #fff !important; }
.cm-sec--text-light .cmb-btn--outline:hover { background: #fff; color: var(--cm-heading-color) !important; }

.cm-sec--text-dark,
.cm-sec--text-dark p { color: #273041; }
.cm-sec--text-dark .cm-heading,
.cm-sec--text-dark .cm-hero__headline { color: var(--cm-heading-color); }

/* blocks that paint their own light surface keep dark text on a dark band */
.cm-sec--text-light .cm-cta--light h3,
.cm-sec--text-light .cm-signup--light .cm-signup__copy h3,
.cm-sec--text-light .cm-signup--light .cm-signup__thanks,
.cm-sec--text-light .cm-faq__question,
.cm-sec--text-light .cm-cards--card .cm-card__title { color: var(--cm-heading-color); }

.cm-sec--text-light .cm-cta--light p,
.cm-sec--text-light .cm-signup--light .cm-signup__copy p,
.cm-sec--text-light .cm-faq__answer,
.cm-sec--text-light .cm-cards--card .cm-card__body p { color: #4b5563; }

.cm-sec--text-light .cm-signup--light .cm-signup__consent,
.cm-sec--text-light .cm-media__media figcaption { color: #8b9099; }

.cm-sec--text-light .cm-cards--card .cm-card__link { color: var(--cm-accent); }

/* ... and their buttons stay on the post colours, not the light-on-dark set */
.cm-sec--text-light .cm-cta--light .cmb-btn,
.cm-sec--text-light .cm-signup--light .cmb-btn {
    background: var(--cm-heading-color);
    border-color: var(--cm-heading-color);
    color: #fff !important;
}

.cm-sec--text-light .cm-cta--light .cmb-btn--secondary,
.cm-sec--text-light .cm-signup--light .cmb-btn--secondary {
    background: var(--cm-accent);
    border-color: var(--cm-accent);
}

.cm-sec--text-light .cm-cta--light .cmb-btn--outline,
.cm-sec--text-light .cm-signup--light .cmb-btn--outline {
    background: transparent;
    border-color: var(--cm-heading-color);
    color: var(--cm-heading-color) !important;
}

/* per-section heading font, size and case */
.cm-sec .cm-heading,
.cm-sec .cm-hero__headline,
.cm-sec .cm-card__title,
.cm-sec .cm-checklist__title,
.cm-sec .cm-block--cta h3,
.cm-sec .cm-signup__copy h3 { font-family: var(--cm-sec-font, var(--cmf-heading)); }

.cm-font--epilogue { --cm-sec-font: 'Epilogue', system-ui, sans-serif; }
.cm-font--inter    { --cm-sec-font: 'Inter', system-ui, sans-serif; }
.cm-font--poppins  { --cm-sec-font: 'Poppins', system-ui, sans-serif; }
.cm-font--fredoka  { --cm-sec-font: 'Fredoka', system-ui, sans-serif; }
.cm-font--baloo    { --cm-sec-font: 'Baloo 2', system-ui, sans-serif; }
.cm-font--space    { --cm-sec-font: 'Space Grotesk', system-ui, sans-serif; }
.cm-font--bebas    { --cm-sec-font: 'Bebas Neue', Impact, sans-serif; }
.cm-font--playfair { --cm-sec-font: 'Playfair Display', Georgia, serif; }
.cm-font--dmserif  { --cm-sec-font: 'DM Serif Display', Georgia, serif; }
.cm-font--lora     { --cm-sec-font: 'Lora', Georgia, serif; }
.cm-font--caveat   { --cm-sec-font: 'Caveat', cursive; }
.cm-font--mono     { --cm-sec-font: 'JetBrains Mono', ui-monospace, monospace; }

/* per-section body font: everything in the section that is not a heading */
.cm-sec { font-family: var(--cm-sec-body, inherit); }

.cm-bodyfont--epilogue { --cm-sec-body: 'Epilogue', system-ui, sans-serif; }
.cm-bodyfont--inter    { --cm-sec-body: 'Inter', system-ui, sans-serif; }
.cm-bodyfont--poppins  { --cm-sec-body: 'Poppins', system-ui, sans-serif; }
.cm-bodyfont--fredoka  { --cm-sec-body: 'Fredoka', system-ui, sans-serif; }
.cm-bodyfont--baloo    { --cm-sec-body: 'Baloo 2', system-ui, sans-serif; }
.cm-bodyfont--space    { --cm-sec-body: 'Space Grotesk', system-ui, sans-serif; }
.cm-bodyfont--bebas    { --cm-sec-body: 'Bebas Neue', Impact, sans-serif; }
.cm-bodyfont--playfair { --cm-sec-body: 'Playfair Display', Georgia, serif; }
.cm-bodyfont--dmserif  { --cm-sec-body: 'DM Serif Display', Georgia, serif; }
.cm-bodyfont--lora     { --cm-sec-body: 'Lora', Georgia, serif; }
.cm-bodyfont--caveat   { --cm-sec-body: 'Caveat', cursive; }
.cm-bodyfont--mono     { --cm-sec-body: 'JetBrains Mono', ui-monospace, monospace; }

.cm-sec--h-s  .cm-heading { font-size: 20px; }
.cm-sec--h-m  .cm-heading { font-size: 30px; }
.cm-sec--h-l  .cm-heading { font-size: 40px; }
.cm-sec--h-xl .cm-heading { font-size: 54px; }

.cm-sec--h-s  .cm-hero__headline { font-size: 30px; }
.cm-sec--h-m  .cm-hero__headline { font-size: 46px; }
.cm-sec--h-l  .cm-hero__headline { font-size: 58px; }
.cm-sec--h-xl .cm-hero__headline { font-size: 72px; }

/* the smaller headings scale with the same control, so "Size" means something
   on a cards, checklist, faq, cta, signup or custom html block too */
.cm-sec--h-s  { --cm-h-scale: .82; }
.cm-sec--h-m  { --cm-h-scale: 1.15; }
.cm-sec--h-l  { --cm-h-scale: 1.4; }
.cm-sec--h-xl { --cm-h-scale: 1.75; }

.cm-sec .cm-hslide__headline { font-size: calc(clamp(34px, 5vw, 60px) * var(--cm-h-scale, 1)); }
.cm-sec .cm-card__title      { font-size: calc(19px * var(--cm-h-scale, 1)); }
.cm-sec .cm-checklist__title { font-size: calc(17px * var(--cm-h-scale, 1)); }
.cm-sec .cm-faq__question    { font-size: calc(17px * var(--cm-h-scale, 1)); }
.cm-sec .cm-block--cta h3    { font-size: calc(28px * var(--cm-h-scale, 1)); }
.cm-sec .cm-signup__copy h3  { font-size: calc(26px * var(--cm-h-scale, 1)); }
.cm-sec .cm-block--html h1   { font-size: calc(36px * var(--cm-h-scale, 1)); }
.cm-sec .cm-block--html h2   { font-size: calc(28px * var(--cm-h-scale, 1)); }
.cm-sec .cm-block--html h3   { font-size: calc(22px * var(--cm-h-scale, 1)); }
.cm-sec .cm-block--html h4   { font-size: calc(18px * var(--cm-h-scale, 1)); }

/* "Custom" heading size: one number for every heading in the section */
.cm-sec--h-custom .cm-heading,
.cm-sec--h-custom .cm-hero__headline,
.cm-sec--h-custom .cm-hslide__headline,
.cm-sec--h-custom .cm-card__title,
.cm-sec--h-custom .cm-checklist__title,
.cm-sec--h-custom .cm-faq__question,
.cm-sec--h-custom .cm-block--cta h3,
.cm-sec--h-custom .cm-signup__copy h3,
.cm-sec--h-custom .cm-block--html h1,
.cm-sec--h-custom .cm-block--html h2,
.cm-sec--h-custom .cm-block--html h3,
.cm-sec--h-custom .cm-block--html h4 { font-size: var(--cm-h-size-custom, 40px); }

/* body text size: the running text of the section, headings untouched */
.cm-sec--b-s      { --cm-body-size: 15px; }
.cm-sec--b-m      { --cm-body-size: 18px; }
.cm-sec--b-l      { --cm-body-size: 20px; }
.cm-sec--b-xl     { --cm-body-size: 23px; }
.cm-sec--b-custom { --cm-body-size: var(--cm-body-size-custom, 17px); }

/* one prefix match instead of naming all five steps against every element.
   No other section class starts "cm-sec--b-", so this only picks up body size. */
.cm-sec[class*="cm-sec--b-"],
.cm-sec[class*="cm-sec--b-"] p,
.cm-sec[class*="cm-sec--b-"] li,
.cm-sec[class*="cm-sec--b-"] td,
.cm-sec[class*="cm-sec--b-"] .cm-hero__subheading,
.cm-sec[class*="cm-sec--b-"] .cm-faq__answer { font-size: var(--cm-body-size); }

/* a buttons block holds no running text, so its labels are its body: without
   this the control had nothing to size and looked broken on that block */
.cm-sec[class*="cm-sec--b-"] .cm-block--buttons .cmb-btn { font-size: var(--cm-body-size); }

/* case applies to every heading the font control reaches */
.cm-sec--case-upper .cm-heading,
.cm-sec--case-upper .cm-hero__headline,
.cm-sec--case-upper .cm-hslide__headline,
.cm-sec--case-upper .cm-card__title,
.cm-sec--case-upper .cm-checklist__title,
.cm-sec--case-upper .cm-faq__question,
.cm-sec--case-upper .cm-block--cta h3,
.cm-sec--case-upper .cm-signup__copy h3,
.cm-sec--case-upper .cm-block--html h1,
.cm-sec--case-upper .cm-block--html h2,
.cm-sec--case-upper .cm-block--html h3,
.cm-sec--case-upper .cm-block--html h4 { text-transform: uppercase; }

.cm-sec--case-lower .cm-heading,
.cm-sec--case-lower .cm-hero__headline,
.cm-sec--case-lower .cm-hslide__headline,
.cm-sec--case-lower .cm-card__title,
.cm-sec--case-lower .cm-checklist__title,
.cm-sec--case-lower .cm-faq__question,
.cm-sec--case-lower .cm-block--cta h3,
.cm-sec--case-lower .cm-signup__copy h3,
.cm-sec--case-lower .cm-block--html h1,
.cm-sec--case-lower .cm-block--html h2,
.cm-sec--case-lower .cm-block--html h3,
.cm-sec--case-lower .cm-block--html h4 { text-transform: lowercase; }

.cm-sec--case-title .cm-heading,
.cm-sec--case-title .cm-hero__headline,
.cm-sec--case-title .cm-hslide__headline,
.cm-sec--case-title .cm-card__title,
.cm-sec--case-title .cm-checklist__title,
.cm-sec--case-title .cm-faq__question,
.cm-sec--case-title .cm-block--cta h3,
.cm-sec--case-title .cm-signup__copy h3,
.cm-sec--case-title .cm-block--html h1,
.cm-sec--case-title .cm-block--html h2,
.cm-sec--case-title .cm-block--html h3,
.cm-sec--case-title .cm-block--html h4 { text-transform: capitalize; }

/* hero: image card with the buttons overlapping it -------------------- */

.cm-hero--card,
.cm-hero--card-reverse {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    border-radius: 0;
    overflow: visible;
}

.cm-hero__card {
    position: relative;
    padding: 14px 14px 46px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, .16);
}

.cm-hero__card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 6px;
}

.cm-hero--fit-contain .cm-hero__card-image {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
}

/* the buttons overlap the image, so an uncropped card needs room for them */
.cm-hero--fit-contain .cm-hero__card { padding-bottom: 14px; }
.cm-hero--fit-contain .cm-hero__card-buttons { position: static; margin-top: 12px; }

.cm-hero__card-buttons {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cm-hero__card-buttons .cmb-btn {
    flex: 1 1 auto;
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(16, 24, 40, .22);
}

.cm-hero--card .cm-hero__copy,
.cm-hero--card-reverse .cm-hero__copy { padding: 0; }

/* checklist ----------------------------------------------------------- */

.cm-checklist__head { margin-bottom: 26px; }
.cm-checklist__head .cm-heading { margin-bottom: 8px; }
.cm-checklist__head p:last-child { margin-bottom: 0; }

.cm-checklist {
    display: grid;
    gap: 22px 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cm-checklist--1 { grid-template-columns: minmax(0, 1fr); }
.cm-checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-checklist--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cm-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cm-checklist__mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: 1px;
    background: #fff;
    color: var(--cm-accent);
    box-shadow: 0 2px 8px rgba(16, 24, 40, .12);
}

.cm-checklist__mark svg { width: 20px; height: 20px; }

.cm-checklist__mark--circle { border-radius: 50%; }
.cm-checklist__mark--square { border-radius: 9px; }
.cm-checklist__mark--plain  { background: transparent; box-shadow: none; width: 24px; height: 24px; }

.cm-checklist__mark--number {
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 16px;
    font-weight: 700;
}

.cm-checklist__body p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.cm-checklist__body p + p { margin-top: 8px; }

.cm-checklist__title {
    display: block;
    margin-bottom: 4px;
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 17px;
    font-weight: 700;
    color: var(--cm-heading-color);
}

/* feature cards -------------------------------------------------------- */

.cm-block--cards > .cm-heading { margin-bottom: 22px; }

.cm-cards {
    display: grid;
    gap: 22px;
}

.cm-cards--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-cards--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cm-cards--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cm-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
}

.cm-card__image img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* letterboxed rather than uncapped, so the cards in a row stay level */
.cm-cards--fit-contain .cm-card__image img {
    object-fit: contain;
    background: rgba(0, 0, 0, .04);
}

.cm-card__body { padding: 20px; }

.cm-card__title {
    margin: 0 0 8px;
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cm-heading-color);
}

.cm-card__body p { font-size: 15.5px; line-height: 1.65; }

.cm-card__link {
    display: inline-block;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cm-accent);
    text-decoration: none;
}

.cm-card__link:hover { text-decoration: underline; }

.cm-cards--card .cm-card    { background: #fff; box-shadow: 0 6px 20px rgba(16, 24, 40, .1); }
.cm-cards--outline .cm-card { background: transparent; border: 1px solid #e4e6eb; }
.cm-cards--tint .cm-card    { background: rgba(0, 0, 0, .04); }
.cm-cards--plain .cm-card   { background: transparent; }
.cm-cards--plain .cm-card__body { padding: 16px 0 0; }

/* a card that lifts off the page */
.cm-cards--elevated .cm-card {
    background: #fff;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .18);
}

/* frosted panel: readable over a photo or a coloured section */
.cm-cards--glass .cm-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .22));
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: 0 18px 44px rgba(16, 24, 40, .14);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
}

/* corners, and an image that sits inside the card rather than filling it */
.cm-cards--r-none .cm-card { border-radius: 0; }
.cm-cards--r-s .cm-card    { border-radius: 8px; }
.cm-cards--r-m .cm-card    { border-radius: 12px; }
.cm-cards--r-l .cm-card    { border-radius: 22px; }

.cm-cards--inset .cm-card__image,
.cm-cards--inset .cm-carousel__media {
    margin: 10px 10px 0;
    border-radius: 12px;
    overflow: hidden;
}

.cm-cards--inset.cm-cards--r-l .cm-card__image,
.cm-cards--inset.cm-cards--r-l .cm-carousel__media { border-radius: 16px; }

.cm-cards--inset.cm-cards--plain .cm-card__image,
.cm-cards--inset.cm-cards--plain .cm-carousel__media { margin: 0; }

/* the chip over the image */
.cm-card__image,
.cm-carousel__media { position: relative; }

.cm-card__badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 24px);
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .55);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* the title's mark sits on the baseline next to the last word */
.cm-card__title .cm-mark {
    margin-left: 7px;
    vertical-align: -2px;
    color: var(--cm-accent);
}

/* a card's own button is smaller than a section button */
.cm-card__cta {
    margin-top: 12px;
    padding: 8px 18px;
    font-size: 13.5px;
}

.cm-cards--pill .cmb-btn { border-radius: 999px; }

.cm-sec--text-light .cm-cards--glass .cm-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
    border-color: rgba(255, 255, 255, .3);
}

.cm-sec--text-light .cm-cards--outline .cm-card { border-color: rgba(255, 255, 255, .3); }
.cm-sec--text-light .cm-cards--tint .cm-card { background: rgba(255, 255, 255, .12); }
.cm-sec--text-light .cm-card__link { color: #fff; }

.cm-align--center .cm-card__body { text-align: center; }

/* pricing table --------------------------------------------------------- */

.cm-pricing__head { margin-bottom: 30px; text-align: center; }
.cm-pricing__head .cm-heading { margin-bottom: 8px; }
.cm-pricing__head p:last-child { margin-bottom: 0; }

.cm-pricing {
    display: grid;
    align-items: stretch;
    gap: 22px;
}

.cm-pricing--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-pricing--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cm-pricing--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cm-pricing__plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    background: #fff;
    border: 1px solid #e4e6eb;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(16, 24, 40, .08);
}

.cm-pricing__plan--featured {
    border-color: var(--cm-accent);
    box-shadow: 0 18px 44px rgba(16, 24, 40, .16);
    transform: translateY(-6px);
}

.cm-pricing__ribbon {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    padding: 8px 16px;
    border-radius: 14px 14px 0 0;
    background: var(--cm-accent);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
    text-align: center;
}

.cm-pricing__plan--featured { padding-top: 52px; }

.cm-pricing__name {
    margin: 0 0 10px;
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 19px;
    font-weight: 700;
    color: var(--cm-heading-color);
}

.cm-pricing__price { margin-bottom: 2px; }
.cm-pricing__amount {
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 34px;
    font-weight: 800;
    color: var(--cm-heading-color);
}

.cm-pricing__period {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.5;
    opacity: .7;
}

.cm-pricing__video {
    width: 100%;
    margin-bottom: 18px;
    cursor: pointer;
}

.cm-pricing__play {
    display: inline-flex;
    margin-right: 8px;
}

.cm-pricing__play svg { width: 16px; height: 16px; }

/* the popup player: one shared lightbox, filled in by content-blocks.js */

.cm-video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cm-video-lightbox.is-open { display: flex; }

html.cm-lightbox-open { overflow: hidden; }

.cm-video-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 16, .85);
}

.cm-video-lightbox__box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
}

.cm-video-lightbox__player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.cm-video-lightbox__player video,
.cm-video-lightbox__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cm-video-lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
}

.cm-video-lightbox__close:hover { background: rgba(255, 255, 255, .22); }

@media (max-width: 767px) {
    .cm-video-lightbox__close { top: -40px; }
}

.cm-pricing__cta { margin-bottom: 18px; }
.cm-pricing__cta .cmb-btn { width: 100%; justify-content: center; }

.cm-pricing__desc {
    margin: 0 0 18px;
    padding-top: 18px;
    border-top: 1px solid #e9eaee;
    font-size: 14.5px;
    line-height: 1.65;
}

.cm-pricing__featureshead {
    margin: 0 0 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .6;
}

.cm-pricing__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cm-pricing__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.5;
}

.cm-pricing__check {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--cm-accent);
}

.cm-pricing__check svg { width: 100%; height: 100%; }

.cm-sec--text-light .cm-pricing__plan:not(.cm-pricing__plan--featured) {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .25);
}
.cm-sec--text-light .cm-pricing__desc { border-top-color: rgba(255, 255, 255, .2); }

/* stats ------------------------------------------------------------------ */

.cm-stats__head { margin-bottom: 26px; text-align: center; }
.cm-stats__head .cm-heading { margin-bottom: 8px; }
.cm-stats__head p:last-child { margin-bottom: 0; }

.cm-stats {
    display: grid;
    gap: 30px;
    text-align: center;
}

.cm-stats--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-stats--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cm-stats--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cm-stat__value {
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--cm-accent);
    overflow-wrap: anywhere;
}

.cm-stat__value--long { font-size: 28px; line-height: 1.2; }

.cm-stat__label {
    margin-top: 6px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--cm-heading-color);
}

.cm-stat__caption { margin: 6px 0 0; font-size: 14px; line-height: 1.5; opacity: .75; }

.cm-sec--text-light .cm-stat__label { color: #fff; }

/* steps ("how it works") ------------------------------------------------- */

.cm-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
}

.cm-step { position: relative; text-align: center; }

/* the connecting line runs behind every number except the last one */
.cm-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 21px;
    left: calc(50% + 26px);
    width: calc(100% - 52px);
    height: 2px;
    background: var(--cm-rule);
}

.cm-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--cm-accent);
    color: #fff;
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 18px;
    font-weight: 700;
}

.cm-step__title {
    margin: 0 0 6px;
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: 17px;
    font-weight: 700;
    color: var(--cm-heading-color);
}

.cm-step__body p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #4b5563; }

.cm-steps--navy { background: #003557; padding: 48px 34px; border-radius: 10px; }
.cm-steps--navy .cm-heading,
.cm-steps--navy .cm-step__title { color: #fff; }
.cm-steps--navy .cm-step__body p { color: rgba(255, 255, 255, .75); }
.cm-steps--navy .cm-step:not(:last-child)::after { background: rgba(255, 255, 255, .25); }

@media (max-width: 1023px) {
    .cm-cards--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cm-checklist--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cm-pricing--cols-4,
    .cm-pricing--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cm-stats--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cm-pricing__plan--featured { transform: none; }
}

@media (max-width: 767px) {
    /* phones get the narrow gutter whatever the section asked for */
    .cm-sec:not(.cm-sec--pad-none) { --cm-pad-x: 20px; }
    .cm-sec--w-full:not(.cm-sec--edge) { --cm-pad-x: 20px; }
    .cm-sec--pad-l, .cm-sec--pad-xl { --cm-pad-y: 44px; }

    .cm-hero--card,
    .cm-hero--card-reverse { grid-template-columns: 1fr; gap: 30px; }
    .cm-hero--card-reverse .cm-hero__copy { order: 2; }

    .cm-checklist--2,
    .cm-checklist--3 { grid-template-columns: minmax(0, 1fr); }

    .cm-cards--cols-2,
    .cm-cards--cols-3,
    .cm-cards--cols-4 { grid-template-columns: minmax(0, 1fr); }

    .cm-pricing--cols-2,
    .cm-pricing--cols-3,
    .cm-pricing--cols-4 { grid-template-columns: minmax(0, 1fr); }
    .cm-pricing__plan--featured { padding-top: 26px; }
    .cm-pricing__ribbon { position: static; border-radius: 8px; margin-bottom: 14px; }

    .cm-stats--cols-2,
    .cm-stats--cols-3,
    .cm-stats--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .cm-steps { grid-template-columns: minmax(0, 1fr); }
    .cm-step:not(:last-child)::after { display: none; }

    .cm-sec--h-l .cm-hero__headline,
    .cm-sec--h-xl .cm-hero__headline { font-size: 38px; }
    .cm-sec--h-l .cm-heading,
    .cm-sec--h-xl .cm-heading { font-size: 30px; }
}

@media (max-width: 767px) {
    .cm-block--columns,
    .cm-gallery--2,
    .cm-gallery--3,
    .cm-gallery--4,
    .cm-hero--split,
    .cm-hero--split-reverse { grid-template-columns: 1fr; }
    .cm-hero--split-reverse .cm-hero__copy { order: 2; }
    .cm-media--split,
    .cm-media--split-reverse { grid-template-columns: 1fr; }
    .cm-media--split-reverse .cm-media__copy { order: 2; }
    .cm-media--medium .cm-media__media,
    .cm-media--small .cm-media__media { max-width: 100%; }

    .cm-hero__headline { font-size: 30px; }
    .cm-hero--background,
    .cm-hero--background-center { padding: 40px 22px; min-height: 320px; }
    .cm-block--cta { padding: 28px 20px; }
}

/* custom html block: author markup, given sensible defaults --------------- */

.cm-block--html h1, .cm-block--html h2, .cm-block--html h3, .cm-block--html h4 {
    font-family: var(--cm-sec-font, var(--cmf-heading));
    color: var(--cm-heading-color);
    line-height: 1.25;
    margin: 0 0 12px;
}
.cm-block--html h1 { font-size: 36px; }
.cm-block--html h2 { font-size: 28px; }
.cm-block--html h3 { font-size: 22px; }
.cm-block--html h4 { font-size: 18px; }
.cm-block--html p, .cm-block--html li { font-size: 17px; line-height: 1.75; }
.cm-block--html p { margin: 0 0 16px; }
.cm-block--html ul, .cm-block--html ol { margin: 0 0 16px; padding-left: 24px; }
.cm-block--html img { max-width: 100%; height: auto; border-radius: 8px; }
.cm-block--html iframe { max-width: 100%; border: 0; border-radius: 8px; }
.cm-block--html a:not(.cmb-btn) { color: var(--cm-accent); text-decoration: underline; }
.cm-block--html table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.cm-block--html th, .cm-block--html td { padding: 10px 12px; border: 1px solid #e4e6eb; text-align: left; vertical-align: top; }
.cm-block--html th { background: rgba(0, 0, 0, .04); font-weight: 600; }
.cm-block--html blockquote { margin: 0 0 16px; padding: 4px 0 4px 18px; border-left: 3px solid var(--cm-accent); color: #4b5563; }
.cm-block--html pre { padding: 14px 16px; background: #f1f4f7; border-radius: 8px; overflow-x: auto; font-size: 13.5px; }
.cm-block--html hr { border: 0; border-top: 1px solid var(--cm-rule); margin: 24px 0; }
.cm-sec--text-light .cm-block--html th, .cm-sec--text-light .cm-block--html td { border-color: rgba(255, 255, 255, .25); }
.cm-sec--text-light .cm-block--html blockquote { color: inherit; }

/* embed / form block --------------------------------------------------- */

.cm-block--embed > .cm-heading { margin-bottom: 16px; }

.cm-embed__frame iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #f5f7fa;
}

.cm-embed--video .cm-embed__frame iframe { aspect-ratio: 16 / 9; height: auto; }

.cm-embed__placeholder {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 22px;
    border: 1px dashed #c3cad4;
    border-radius: 8px;
    background: #f5f7fa;
    color: #596680;
    font-size: 14px;
    text-align: center;
}

.cm-embed__placeholder strong { font-size: 16px; color: #273041; }


/* ===================================================================
   Winning the font back from the site-wide theme.

   frontend/assets/css/style.css carries two blanket rules:
       body, html, p, a, ... { font-family: sans-serif !important; }
       html, h1, h2, h3, h4, h5, h6, ... { font-family: sans-serif !important; }
   They land on the article body as well, so every font picked in the
   editor - the post-wide Design fonts and the per-section Heading/Body
   controls alike - was being thrown away. These re-assert the choice for
   article content only; the class raises the specificity so it wins no
   matter which stylesheet loads last.
   =================================================================== */

.cm-content,
.cm-content p,
.cm-content a,
.cm-content li,
.cm-content th,
.cm-content td,
.cm-content blockquote,
.cm-content figcaption,
.cm-content label,
.cm-content input,
.cm-content button { font-family: var(--cm-sec-body, var(--cmf-body)) !important; }

.cm-content h1,
.cm-content h2,
.cm-content h3,
.cm-content h4,
.cm-content h5,
.cm-content h6,
.cm-content .cm-heading,
.cm-content .cm-hero__headline,
.cm-content .cm-card__title,
.cm-content .cm-checklist__title,
.cm-content .cm-checklist__mark--number,
.cm-content .cm-faq__question,
.cm-content .cm-block--cta h3,
.cm-content .cm-signup__copy h3 { font-family: var(--cm-sec-font, var(--cmf-heading)) !important; }


/* carousel: a row of cards that scrolls sideways ----------------------- */

.cm-block--carousel { --cm-car-gap: 16px; --cm-car-view: 3; }

.cm-carousel--view-1 { --cm-car-view: 1; }
.cm-carousel--view-2 { --cm-car-view: 2; }
.cm-carousel--view-4 { --cm-car-view: 4; }

.cm-carousel { position: relative; }

.cm-carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - var(--cm-car-gap) * (var(--cm-car-view) - 1)) / var(--cm-car-view));
    gap: var(--cm-car-gap);
    /* vertical room only, so the card shadows are not clipped by the scroller
       and the snap positions stay flush with the section edge */
    padding: 6px 0 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cm-carousel__track::-webkit-scrollbar { display: none; }
.cm-carousel__track:focus-visible { outline: 2px solid var(--cm-accent); outline-offset: 3px; }

.cm-carousel__slide {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
}

/* the image keeps one shape across the row, whatever the files are */
.cm-carousel__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(0, 0, 0, .04);
}

.cm-carousel--ratio-square .cm-carousel__media   { aspect-ratio: 1 / 1; }
.cm-carousel--ratio-portrait .cm-carousel__media { aspect-ratio: 3 / 4; }
.cm-carousel--ratio-wide .cm-carousel__media     { aspect-ratio: 16 / 9; }

.cm-carousel__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm-carousel--fit-contain .cm-carousel__media img { object-fit: contain; }

.cm-carousel__slide .cm-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

/* the body reads title, copy, button - the button held at the foot so a row of
   cards lines its buttons up however long the copy runs */
.cm-carousel__slide .cm-card__title { margin-bottom: 0; }

.cm-carousel__btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 16px;
    font-size: 13.5px;
}

.cm-align--center .cm-carousel__btn { align-self: center; }

.cm-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(16, 24, 40, .25);
    color: #273041;
    cursor: pointer;
    transition: opacity .15s ease;
}

.cm-carousel__nav--prev { left: 8px; }
.cm-carousel__nav--next { right: 8px; }
.cm-carousel__nav:hover { background: #f4f6f8; }
.cm-carousel__nav[disabled] { opacity: 0; pointer-events: none; }

@media (max-width: 1023px) {
    .cm-carousel--view-3 { --cm-car-view: 2; }
    .cm-carousel--view-4 { --cm-car-view: 2; }
}

@media (max-width: 767px) {
    .cm-block--carousel { --cm-car-gap: 12px; }
    .cm-carousel--view-2,
    .cm-carousel--view-3,
    .cm-carousel--view-4 { --cm-car-view: 1; }
}


/* hero slider: full-bleed image slides with the copy over them ---------- */

.cm-block--heroslider { --cm-car-gap: 0px; --cm-car-view: 1; --cm-hslide-h: 620px; }

.cm-hslider--h-s { --cm-hslide-h: 380px; }
.cm-hslider--h-m { --cm-hslide-h: 500px; }
.cm-hslider--h-l { --cm-hslide-h: 620px; }
.cm-hslider--h-full { --cm-hslide-h: min(100vh, 900px); }

.cm-hslider .cm-carousel__track { padding: 0; border-radius: 12px; }

.cm-hslide {
    position: relative;
    display: flex;
    flex-direction: row;
    min-height: var(--cm-hslide-h);
    padding: 48px;
    background-color: #17181c;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0;
    overflow: hidden;
}

/* the scrim keeps the copy readable whatever the photo does behind it */
.cm-hslide__scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cm-hslider--scrim-light .cm-hslide__scrim  { background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .1) 60%); }
.cm-hslider--scrim-medium .cm-hslide__scrim { background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .2) 70%); }
.cm-hslider--scrim-strong .cm-hslide__scrim { background: linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .45) 75%); }

.cm-hslider--align-center .cm-hslide__scrim { background: rgba(0, 0, 0, .5); }
.cm-hslider--align-center.cm-hslider--scrim-light .cm-hslide__scrim  { background: rgba(0, 0, 0, .3); }
.cm-hslider--align-center.cm-hslider--scrim-strong .cm-hslide__scrim { background: rgba(0, 0, 0, .68); }
.cm-hslider--scrim-none .cm-hslide__scrim { background: none; }

.cm-hslide__copy {
    position: relative;
    z-index: 1;
    align-self: center;
    max-width: 520px;
    color: var(--cm-slide-ink, #fff);
}

/* the copy lies over a photo, so it is light whether the section says Auto or
   Light; only an explicit Dark flips it, for a slide over a pale image */
.cm-sec--text-dark .cm-block--heroslider {
    --cm-slide-ink: var(--cm-heading-color);
    --cm-slide-ink-soft: #273041;
    --cm-slide-ink-faint: #5b6472;
}

.cm-hslider--align-center .cm-hslide { justify-content: center; text-align: center; }
.cm-hslider--align-center .cm-hslide__copy { max-width: 720px; }
.cm-hslider--align-right .cm-hslide { justify-content: flex-end; }
.cm-hslider--align-right .cm-hslide__scrim { transform: scaleX(-1); }

.cm-hslide__eyebrow {
    margin: 0 0 14px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cm-slide-ink-faint, rgba(255, 255, 255, .82));
}

.cm-hslide__headline {
    margin: 0 0 16px;
    font-family: var(--cm-sec-font, var(--cmf-heading));
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.05;
    font-weight: 800;
    color: var(--cm-slide-ink, #fff);
}

.cm-hslide__text {
    margin: 0;
    max-width: 44ch;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--cm-slide-ink-soft, rgba(255, 255, 255, .88));
}

.cm-hslider--align-center .cm-hslide__text { margin-left: auto; margin-right: auto; }

.cm-hslide__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin-top: 28px;
}

.cm-hslider--align-center .cm-hslide__actions { justify-content: center; }
.cm-hslider--align-right .cm-hslide__actions { justify-content: flex-end; }

.cm-hslide .cm-hslide__cta {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
}

/* a text link sits on the photo, so it reads in white rather than navy */
.cm-hslide .cmb-btn--link { color: #fff !important; }
.cm-hslide .cmb-btn--link:hover { color: rgba(255, 255, 255, .78) !important; }

/* a slide set to dark text sits on a pale photo, so its text link follows */
.cm-sec--text-dark .cm-hslide .cmb-btn--link { color: var(--cm-btn) !important; }
.cm-sec--text-dark .cm-hslide .cmb-btn--link .cm-hslide__icon { border-color: currentColor; }

/* the optional mark in front of a slide button's label */
.cm-hslide__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-right: 10px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.cm-hslide__icon svg { display: block; }
.cm-hslide .cmb-btn--link .cm-hslide__icon { border-color: rgba(255, 255, 255, .55); }

/* the slider's own arrows sit inside the image, not beside the cards */
.cm-hslider .cm-carousel__nav {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, .42);
    box-shadow: none;
    color: #fff;
}

.cm-hslider .cm-carousel__nav:hover { background: rgba(0, 0, 0, .62); }
.cm-hslider .cm-carousel__nav--prev { left: 18px; }
.cm-hslider .cm-carousel__nav--next { right: 18px; }

/* pagination bars, the way a hero usually marks its slides */
.cm-carousel__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.cm-carousel__dot {
    width: 34px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, .38);
    cursor: pointer;
    transition: background .15s ease;
}

.cm-carousel__dot:hover { background: rgba(255, 255, 255, .62); }
.cm-carousel__dot.is-on { background: #fff; }

@media (max-width: 767px) {
    .cm-hslider--h-l { --cm-hslide-h: 460px; }
    .cm-hslider--h-full { --cm-hslide-h: min(100vh, 620px); }
    .cm-hslide { padding: 28px 22px 54px; }
    .cm-hslide__actions { margin-top: 20px; }
    .cm-hslider .cm-carousel__nav { display: none; }
}
