/* The shared bottom of every page: the Get started band (.mbcta) and the site footer (.mbf).
   Markup lives in elements/cta.php and elements/footer.php, which every page includes.
   Selectors use two classes so they win over page rules like "body.skills h2" or "body.skills a". */

.mbcta, .mbf {
    font: 15px/1.6 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
.mbcta *, .mbf * { box-sizing: border-box; }
.mbf .mbf-in { max-width: 1320px; margin: 0 auto; padding: 0 28px; }

/* ---------- Get started band ---------- */
/* a rounded card inset from the page edges, with space above; its lower part overlaps the top of the footer
   (the wrapper's bottom strip is footer navy, so the card appears to sit across the join) */
.mbcta {
    --mbcta-overlap: 80px;
    padding: 96px 28px 0;
    background: linear-gradient(to bottom, transparent calc(100% - var(--mbcta-overlap)), #141a2e 0);
    color: #fff;
}
.mbcta .mbcta-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    max-width: 1264px;
    margin: 0 auto;
    padding: 64px 64px 0;
    border-radius: 28px;
    background: #4b89ff;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(20, 26, 46, .45);
}
.mbcta .mbcta-txt { padding-bottom: 64px; }
.mbcta .mbcta-k {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    opacity: .9;
}
.mbcta .mbcta-h {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    color: #fff;
}
.mbcta .mbcta-p { margin: 0 0 26px; max-width: 520px; font-size: 17px; color: #fff; }
.mbcta .mbcta-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.mbcta .mbcta-btn {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 24px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #fff;
    color: #2238c9;
    font-weight: 800;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.mbcta .mbcta-btn:hover { background: #eef1ff; }
.mbcta .mbcta-btn.mbcta-ghost { background: transparent; color: #fff; }
.mbcta .mbcta-btn.mbcta-ghost:hover { background: rgba(255, 255, 255, .14); }
.mbcta .mbcta-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* the worksheets rise up from the card's bottom edge, their lower part cropped off */
.mbcta .mbcta-img { align-self: end; }
.mbcta .mbcta-img img {
    display: block;
    width: 100%;
    max-width: 580px;
    height: auto;
    margin: 0 0 -14% auto;
}

/* ---------- footer ---------- */
.mbf {
    background: #141a2e;
    color: #c9cedb;
    text-align: left;
    padding: 0;
}
.mbf .mbf-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr));
    gap: 32px;
    padding: 56px 0 48px;
}
.mbf .mbf-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -.03em;
    color: #fff;
    text-decoration: none;
}
.mbf .mbf-logo b { font-weight: 700; }
.mbf .mbf-logo img { display: block; width: 34px; height: 34px; }
.mbf .mbf-brand p { margin: 14px 0 26px; max-width: 280px; }
.mbf .mbf-h {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}
.mbf ul { list-style: none; margin: 0; padding: 0; }
.mbf .mbf-col ul + .mbf-h { margin-top: 26px; }
.mbf li { margin: 0 0 8px; }
.mbf .mbf-col a, .mbf .mbf-contact a, .mbf .mbf-legal a, .mbf .mbf-legal button {
    color: #c9cedb;
    text-decoration: none;
    transition: color .15s ease;
}
.mbf .mbf-col a:hover, .mbf .mbf-contact a:hover, .mbf .mbf-legal a:hover, .mbf .mbf-legal button:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mbf a:focus-visible, .mbf button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 3px; }
.mbf .mbf-contact a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.mbf .mbf-contact .mbf-at { font-weight: 500; color: #c9cedb; }
.mbf .mbf-contact svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mbf .mbf-contact svg .mbf-fill { fill: currentColor; stroke: none; }

.mbf .mbf-legal { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.mbf .mbf-legal .mbf-in {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 28px;
    padding-top: 20px;
    padding-bottom: 24px;
}
.mbf .mbf-legal p { margin: 0; color: #a9afbf; }
.mbf .mbf-legal ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.mbf .mbf-legal li { margin: 0; }
.mbf .mbf-legal button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
    .mbf .mbf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mbf .mbf-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .mbcta { padding-top: 72px; }
    .mbcta .mbcta-in { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 48px 40px 0; }
    .mbcta .mbcta-txt { padding-bottom: 36px; }
    .mbcta .mbcta-img img { max-width: 440px; margin: 0 auto -14%; }
}
@media (max-width: 600px) {
    .mbcta { --mbcta-overlap: 56px; padding: 56px 16px 0; }
    .mbcta .mbcta-in { padding: 36px 20px 0; border-radius: 22px; }
    .mbf .mbf-in { padding-left: 16px; padding-right: 16px; }
    .mbcta .mbcta-btn { flex: 1 1 100%; justify-content: center; }
    .mbf .mbf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding-top: 48px; }
    .mbf .mbf-legal .mbf-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .mbcta .mbcta-btn, .mbf a, .mbf button { transition: none; }
}
@media print {
    .mbcta, .mbf { display: none; }
}

