/* =========================================================================
   CMS — Modern home page
   Self-contained stylesheet. Everything is namespaced under `mg-` so it can
   never collide with cms.css (used by the blog / contact / custom pages).
   ========================================================================= */

.mg-site {
    /* Brand — override these from CMS > Settings > custom CSS if needed */
    --mg-primary: #1973fe;
    --mg-primary-dark: #0f57cc;
    --mg-primary-soft: #e8f0ff;

    /* Ink & surfaces */
    --mg-ink: #0a1f44;
    --mg-ink-soft: #4a5b7a;
    --mg-muted: #6b7c99;
    --mg-surface: #ffffff;
    --mg-tint: #f5f8ff;
    --mg-border: #e7edf7;
    --mg-border-strong: #d7e1f0;

    /* Accents used by the alternating showcase cards */
    --mg-accent-1: #eef3ff;
    --mg-accent-2: #fff1e9;
    --mg-accent-3: #f6eeff;
    --mg-accent-4: #e9f8f1;

    /* Shape */
    --mg-r-sm: 12px;
    --mg-r-md: 18px;
    --mg-r-lg: 28px;
    --mg-r-pill: 999px;

    /* Elevation */
    --mg-shadow-xs: 0 1px 2px rgba(10, 31, 68, .06);
    --mg-shadow-sm: 0 4px 16px rgba(10, 31, 68, .06);
    --mg-shadow-md: 0 18px 40px -18px rgba(10, 31, 68, .22);
    --mg-shadow-lg: 0 40px 80px -32px rgba(10, 31, 68, .35);

    --mg-nav-h: 76px;

    /* this class sits on <body>, so the UA's default 8px margin is cleared
       here — the element resets below only reach its descendants */
    margin: 0;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        Helvetica, Arial, sans-serif;
    color: var(--mg-ink);
    background: var(--mg-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mg-site *,
.mg-site *::before,
.mg-site *::after {
    box-sizing: border-box;
}

/*
 | Element resets are wrapped in `:where()` so they carry no specificity.
 | Written plainly (`.mg-site button { padding: 0 }`) they would beat every
 | single-class component rule below and silently strip its padding/colour.
 */
:where(.mg-site) :where(h1, h2, h3, h4, p, ul, figure, blockquote) {
    margin: 0;
}

:where(.mg-site) ul {
    padding: 0;
    list-style: none;
}

:where(.mg-site) img {
    max-width: 100%;
    height: auto;
    display: block;
}

:where(.mg-site) a {
    color: inherit;
    text-decoration: none;
}

:where(.mg-site) button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.mg-site :focus-visible {
    outline: 2px solid var(--mg-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------------------------------------------------------------- layout */

.mg-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
}

.mg-section {
    padding-block: 64px;
}

.mg-section--tight {
    padding-block: 40px;
}

@media (min-width: 900px) {
    .mg-section {
        padding-block: 104px;
    }

    .mg-section--tight {
        padding-block: 64px;
    }
}

/*
 | Sits after the media query above so it wins at every breakpoint. Used when
 | a section follows a page header directly and the two paddings would stack
 | into an empty band (e.g. the sign-up form).
 */
.mg-section--flush-top {
    padding-top: 0;
}

@media (min-width: 900px) {
    .mg-section--flush-top {
        padding-top: 0;
    }
}

.mg-section__head {
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: 44px;
}

.mg-section__title {
    font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 700;
}

.mg-section__sub {
    margin-top: 14px;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--mg-muted);
}

/* ---------------------------------------------------------------- badge */

.mg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px 7px 11px;
    border-radius: var(--mg-r-pill);
    background: var(--mg-surface);
    border: 1px solid var(--mg-border);
    box-shadow: var(--mg-shadow-xs);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mg-ink-soft);
    margin-bottom: 20px;
}

.mg-badge i {
    font-size: 0.75rem;
    color: var(--mg-primary);
}

/* ---------------------------------------------------------------- buttons */

.mg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: var(--mg-r-pill);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease,
        border-color .18s ease, color .18s ease;
}

.mg-btn:hover {
    transform: translateY(-1px);
}

.mg-btn:active {
    transform: translateY(0);
}

.mg-btn--primary {
    background: var(--mg-primary);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(25, 115, 254, .8);
}

.mg-btn--primary:hover {
    background: var(--mg-primary-dark);
    color: #fff;
    box-shadow: 0 16px 30px -12px rgba(25, 115, 254, .85);
}

.mg-btn--ghost {
    background: var(--mg-surface);
    color: var(--mg-ink);
    border-color: var(--mg-border-strong);
    box-shadow: var(--mg-shadow-xs);
}

.mg-btn--ghost:hover {
    border-color: var(--mg-primary);
    color: var(--mg-primary);
}

.mg-btn--light {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
}

.mg-btn--light:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.mg-btn--white {
    background: #fff;
    color: var(--mg-primary);
}

.mg-btn--white:hover {
    color: var(--mg-primary-dark);
}

.mg-btn--sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.mg-btn--block {
    width: 100%;
}

/* ================================================================== NAV */

.mg-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: transparent;
    transition: background-color .25s ease, box-shadow .25s ease,
        border-color .25s ease, backdrop-filter .25s ease;
    border-bottom: 1px solid transparent;
}

.mg-nav--stuck {
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: var(--mg-border);
    box-shadow: 0 6px 24px -18px rgba(10, 31, 68, .5);
}

.mg-nav__inner {
    height: var(--mg-nav-h);
    display: flex;
    align-items: center;
    gap: 16px;
}

.mg-nav__brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.mg-nav__logo {
    /* Scales with the bar but never crowds it — --mg-nav-h is 76px, so the
       logo tops out at 52px and keeps 12px of clearance above and below. */
    height: clamp(42px, 6.8vw, 52px);
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.mg-nav__menu {
    display: none;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
}

.mg-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: var(--mg-r-pill);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--mg-ink-soft);
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}

.mg-nav__link:hover,
.mg-nav__item--open > .mg-nav__link {
    color: var(--mg-ink);
    background: var(--mg-tint);
}

.mg-nav__link svg {
    width: 11px;
    height: 11px;
    transition: transform .2s ease;
}

.mg-nav__item {
    position: relative;
}

.mg-nav__item--open .mg-nav__link svg {
    transform: rotate(180deg);
}

.mg-nav__actions {
    display: none;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* desktop dropdown */
.mg-nav__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    min-width: 240px;
    padding: 8px;
    background: var(--mg-surface);
    border: 1px solid var(--mg-border);
    border-radius: var(--mg-r-md);
    box-shadow: var(--mg-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.mg-nav__item--open .mg-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.mg-nav__dropdown-link {
    display: block;
    padding: 10px 14px;
    border-radius: var(--mg-r-sm);
    font-size: 0.9375rem;
    color: var(--mg-ink-soft);
    transition: background-color .15s ease, color .15s ease;
}

.mg-nav__dropdown-link:hover {
    background: var(--mg-tint);
    color: var(--mg-primary);
}

/* burger */
.mg-nav__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: var(--mg-r-sm);
    border: 1px solid var(--mg-border-strong);
    background: var(--mg-surface);
    color: var(--mg-ink);
    font-size: 1.05rem;
}

@media (min-width: 992px) {
    .mg-nav__menu,
    .mg-nav__actions {
        display: flex;
    }

    .mg-nav__burger {
        display: none;
    }
}

/* mobile drawer */
.mg-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    visibility: hidden;
    /* clips the closed panel, which is parked off-screen to the right */
    overflow: hidden;
}

.mg-drawer.is-open {
    visibility: visible;
}

.mg-drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 68, .45);
    opacity: 0;
    transition: opacity .25s ease;
}

.mg-drawer.is-open .mg-drawer__scrim {
    opacity: 1;
}

.mg-drawer__panel {
    position: relative;
    width: min(360px, 88vw);
    height: 100%;
    background: var(--mg-surface);
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mg-drawer.is-open .mg-drawer__panel {
    transform: translateX(0);
}

.mg-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mg-drawer__close {
    width: 40px;
    height: 40px;
    border-radius: var(--mg-r-sm);
    border: 1px solid var(--mg-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.mg-drawer__link {
    display: block;
    padding: 13px 14px;
    border-radius: var(--mg-r-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--mg-ink);
}

.mg-drawer__link:hover {
    background: var(--mg-tint);
    color: var(--mg-primary);
}

.mg-drawer__label {
    padding: 16px 14px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mg-muted);
}

.mg-drawer__footer {
    margin-top: auto;
    padding-top: 20px;
    display: grid;
    gap: 10px;
}

@media (min-width: 992px) {
    .mg-drawer {
        display: none;
    }
}

/* ================================================================== HERO */

.mg-hero {
    position: relative;
    overflow: hidden;
    /* the fixed nav sits on top of the hero, so reserve its height here */
    padding-top: var(--mg-nav-h);
    background:
        radial-gradient(120% 80% at 50% -10%, #dfeaff 0%, rgba(223, 234, 255, 0) 62%),
        linear-gradient(180deg, #f2f7ff 0%, #ffffff 100%);
}

.mg-hero::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

/* soft colour blooms behind the split layout */
.mg-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    pointer-events: none;
}

.mg-hero__glow--a {
    width: 480px;
    height: 480px;
    top: -140px;
    right: -80px;
    background: #bcd4ff;
}

.mg-hero__glow--b {
    width: 380px;
    height: 380px;
    bottom: -160px;
    left: -120px;
    background: #d9e6ff;
}

.mg-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    /*
     | `minmax(0, 1fr)` rather than the implicit `auto`: the carousel track is
     | 600% wide, and an auto column would size to that and blow the page out
     | horizontally on small screens.
     */
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    padding-block: 44px 60px;
}

@media (min-width: 992px) {
    .mg-hero__grid {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
        gap: 56px;
        padding-block: 64px 96px;
    }
}

/* ---------------------------------------------------------- hero: left col */

.mg-hero__body {
    text-align: center;
}

@media (min-width: 992px) {
    .mg-hero__body {
        text-align: left;
    }
}

.mg-hero__title {
    font-size: clamp(2.1rem, 1.1rem + 3.6vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 700;
}

/*
 | The heading is split into words by JS so each can rise independently.
 | `.mg-word` is the animated unit; the inline-block wrapper keeps the
 | overflow clip per-word so letters never bleed into the line above.
 */
.mg-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.mg-word > span {
    display: inline-block;
    transform: translateY(105%);
    opacity: 0;
    animation: mg-word-up .85s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: var(--mg-word-delay, 0s);
}

@keyframes mg-word-up {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* the accent sweep under the headline */
.mg-hero__title-rule {
    display: block;
    width: 0;
    height: 4px;
    margin: 22px auto 0;
    border-radius: var(--mg-r-pill);
    background: linear-gradient(90deg, var(--mg-primary), #7a7aff, transparent);
    animation: mg-rule-grow 1s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: .6s;
}

@media (min-width: 992px) {
    .mg-hero__title-rule {
        margin-inline: 0;
    }
}

@keyframes mg-rule-grow {
    to { width: 132px; }
}

.mg-hero__text {
    margin-top: 22px;
    font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
    line-height: 1.7;
    color: var(--mg-muted);
}

.mg-hero__text p {
    margin-bottom: 0;
}

.mg-hero__text p + p {
    margin-top: 10px;
}

.mg-hero__actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 992px) {
    .mg-hero__actions {
        justify-content: flex-start;
    }
}

.mg-hero__note {
    margin-top: 18px;
    font-size: 0.8125rem;
    color: var(--mg-muted);
}

/* small proof row under the CTAs */
.mg-hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    justify-content: center;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--mg-border);
}

@media (min-width: 992px) {
    .mg-hero__proof {
        justify-content: flex-start;
    }
}

.mg-hero__proof-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.875rem;
    color: var(--mg-ink-soft);
}

.mg-hero__proof-item i {
    color: #00a761;
    font-size: 0.8125rem;
}

/* --------------------------------------------------- hero: right carousel */

.mg-carousel {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.mg-carousel__viewport {
    position: relative;
    border-radius: var(--mg-r-lg);
    overflow: hidden;
    background: var(--mg-surface);
    box-shadow: var(--mg-shadow-lg);
    /* keeps every slide the same height whatever it contains */
    aspect-ratio: 4 / 3.4;
}

@media (max-width: 991px) {
    .mg-carousel__viewport {
        aspect-ratio: 4 / 3.6;
    }
}

.mg-carousel__track {
    display: flex;
    height: 100%;
    transition: transform .65s cubic-bezier(.65, 0, .35, 1);
    will-change: transform;
}

.mg-carousel__slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    overflow: hidden;
}

/* image slide */
.mg-carousel__slide--image {
    padding: 0;
}

.mg-carousel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mg-carousel__caption {
    position: absolute;
    inset-inline: 18px;
    bottom: 18px;
    padding: 16px 20px;
    border-radius: var(--mg-r-md);
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: var(--mg-shadow-sm);
}

.mg-carousel__caption-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.mg-carousel__caption-text {
    margin-top: 4px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--mg-muted);
}

/* feature slides — pastel rotation matching the industry cards */
.mg-carousel__slide--feature { background: var(--mg-accent-1); }
.mg-carousel__slide--feature:nth-child(4n+2) { background: var(--mg-accent-2); }
.mg-carousel__slide--feature:nth-child(4n+3) { background: var(--mg-accent-3); }
.mg-carousel__slide--feature:nth-child(4n+4) { background: var(--mg-accent-4); }

.mg-carousel__slide--feature::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
}

.mg-carousel__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--mg-surface);
    color: var(--mg-primary);
    font-size: 1.35rem;
    box-shadow: var(--mg-shadow-sm);
    /* the slide packs its content to the bottom, so the icon sits with it */
    align-self: flex-start;
}

.mg-carousel__index {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--mg-ink-soft);
    opacity: .5;
}

.mg-carousel__title {
    position: relative;
    margin-top: 18px;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.mg-carousel__text {
    position: relative;
    margin-top: 10px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--mg-ink-soft);
    /* long CMS copy must not blow out the fixed slide height */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* controls */
.mg-carousel__nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    justify-content: center;
}

@media (min-width: 992px) {
    .mg-carousel__nav {
        justify-content: flex-start;
    }
}

.mg-carousel__btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mg-surface);
    border: 1px solid var(--mg-border-strong);
    color: var(--mg-ink);
    box-shadow: var(--mg-shadow-xs);
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.mg-carousel__btn:hover {
    background: var(--mg-primary);
    border-color: var(--mg-primary);
    color: #fff;
    transform: translateY(-2px);
}

.mg-carousel__dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-inline: auto 0;
}

@media (max-width: 991px) {
    .mg-carousel__dots {
        margin-inline: 0;
    }
}

.mg-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--mg-r-pill);
    background: var(--mg-border-strong);
    transition: width .25s ease, background-color .25s ease;
}

.mg-carousel__dot.is-active {
    width: 26px;
    background: var(--mg-primary);
}

/* floating accent chips around the carousel */
.mg-hero__chip {
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--mg-surface);
    box-shadow: var(--mg-shadow-md);
    font-size: 1.25rem;
    z-index: 3;
    animation: mg-float 6s ease-in-out infinite;
}

.mg-hero__chip--1 { top: -22px; left: -24px;  color: var(--mg-primary); }
.mg-hero__chip--2 { top: 26%;   left: -28px;  color: #00a761; animation-delay: -3s; }
.mg-hero__chip--3 { top: 64px;  right: -26px; color: #f2b100; animation-delay: -1.5s; }

@media (min-width: 1200px) {
    .mg-hero__chip {
        display: inline-flex;
    }
}

@keyframes mg-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
    .mg-hero__chip {
        animation: none;
    }

    .mg-word > span {
        animation: none;
        transform: none;
        opacity: 1;
    }

    .mg-hero__title-rule {
        animation: none;
        width: 132px;
    }

    .mg-carousel__track {
        transition: none;
    }
}

/* ============================================================= STATEMENT */

.mg-statement {
    max-width: 940px;
    margin-inline: auto;
    font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem);
    line-height: 1.5;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--mg-ink-soft);
}

.mg-statement strong,
.mg-statement b {
    color: var(--mg-ink);
    font-weight: 700;
}

/* ============================================================== FEATURES */

.mg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

@media (min-width: 640px) {
    .mg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .mg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 640px) and (max-width: 899px) {
    .mg-grid--3,
    .mg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.mg-card {
    position: relative;
    height: 100%;
    padding: 28px;
    background: var(--mg-surface);
    border: 1px solid var(--mg-border);
    border-radius: var(--mg-r-md);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.mg-card:hover {
    transform: translateY(-4px);
    border-color: var(--mg-border-strong);
    box-shadow: var(--mg-shadow-md);
}

.mg-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--mg-primary-soft);
    color: var(--mg-primary);
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.mg-card__title {
    font-size: 1.0625rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.mg-card__text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--mg-muted);
}

/* ============================================================ INDUSTRIES */

.mg-industry {
    height: 100%;
    padding: 30px;
    border-radius: var(--mg-r-lg);
    background: var(--mg-accent-1);
    transition: transform .22s ease, box-shadow .22s ease;
}

/* pastel rotation so a long list of industries never looks monotonous */
.mg-industry:nth-child(4n+2) { background: var(--mg-accent-2); }
.mg-industry:nth-child(4n+3) { background: var(--mg-accent-3); }
.mg-industry:nth-child(4n+4) { background: var(--mg-accent-4); }

.mg-industry:hover {
    transform: translateY(-4px);
    box-shadow: var(--mg-shadow-md);
}

.mg-industry__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .85);
    color: var(--mg-primary);
    font-size: 1.15rem;
    margin-bottom: 18px;
    box-shadow: var(--mg-shadow-xs);
}

.mg-industry__title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.mg-industry__text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--mg-ink-soft);
}

.mg-section__cta {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ================================================================= STATS */

.mg-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--mg-border);
    border: 1px solid var(--mg-border);
    border-radius: var(--mg-r-lg);
    overflow: hidden;
}

@media (min-width: 900px) {
    .mg-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mg-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mg-stat {
    background: var(--mg-surface);
    padding: 32px 20px;
    text-align: center;
}

.mg-stat__num {
    display: block;
    font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--mg-primary);
}

.mg-stat__label {
    margin-top: 8px;
    font-size: 0.9375rem;
    color: var(--mg-muted);
}

/* ========================================================== TESTIMONIALS */

.mg-testimonials {
    background: linear-gradient(180deg, #f3f7ff 0%, #eef4ff 100%);
    border-radius: var(--mg-r-lg);
    padding-block: 56px;
}

@media (min-width: 900px) {
    .mg-testimonials {
        padding-block: 80px;
    }
}

.mg-quotes {
    columns: 1;
    column-gap: 20px;
}

@media (min-width: 640px) {
    .mg-quotes { columns: 2; }
}

@media (min-width: 1000px) {
    .mg-quotes { columns: 3; }
}

.mg-quote {
    break-inside: avoid;
    margin-bottom: 20px;
    padding: 26px;
    background: var(--mg-surface);
    border: 1px solid rgba(231, 237, 247, .9);
    border-radius: var(--mg-r-md);
    box-shadow: var(--mg-shadow-xs);
    transition: transform .22s ease, box-shadow .22s ease;
}

.mg-quote:hover {
    transform: translateY(-3px);
    box-shadow: var(--mg-shadow-md);
}

.mg-quote__stars {
    display: flex;
    gap: 3px;
    color: #f5a623;
    font-size: 0.8125rem;
    margin-bottom: 14px;
}

.mg-quote__body {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--mg-ink-soft);
}

.mg-quote__body p:last-child {
    margin-bottom: 0;
}

.mg-quote__person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--mg-border);
}

.mg-quote__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--mg-tint);
}

.mg-quote__name {
    font-size: 0.9375rem;
    font-weight: 650;
}

/* =================================================================== CTA */

.mg-cta__panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--mg-r-lg);
    padding: 48px 28px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--mg-primary) 0%, #0b3fa8 55%, #0a1f44 100%);
    box-shadow: var(--mg-shadow-md);
}

@media (min-width: 900px) {
    .mg-cta__panel {
        padding: 72px 56px;
    }
}

.mg-cta__panel::before,
.mg-cta__panel::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.mg-cta__panel::before {
    width: 380px;
    height: 380px;
    top: -180px;
    right: -120px;
}

.mg-cta__panel::after {
    width: 300px;
    height: 300px;
    bottom: -180px;
    left: -100px;
}

.mg-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin-inline: auto;
}

.mg-cta__title {
    font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.mg-cta__text {
    margin-top: 14px;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
}

.mg-cta__actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* =================================================================== FAQ */

.mg-faq {
    max-width: 820px;
    margin-inline: auto;
}

.mg-faq__item {
    border: 1px solid var(--mg-border);
    border-radius: var(--mg-r-md);
    background: var(--mg-surface);
    margin-bottom: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mg-faq__item.is-open {
    border-color: var(--mg-border-strong);
    box-shadow: var(--mg-shadow-sm);
}

.mg-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 20px 22px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.mg-faq__q-text {
    flex: 1;
}

.mg-faq__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mg-tint);
    color: var(--mg-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: transform .25s ease, background-color .2s ease;
}

.mg-faq__item.is-open .mg-faq__icon {
    transform: rotate(45deg);
    background: var(--mg-primary);
    color: #fff;
}

.mg-faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
}

.mg-faq__item.is-open .mg-faq__a {
    grid-template-rows: 1fr;
}

.mg-faq__a-inner {
    overflow: hidden;
}

.mg-faq__a p {
    padding: 0 22px 22px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--mg-muted);
}

/* ================================================================ FOOTER */

.mg-footer {
    position: relative;
    overflow: hidden;
    margin-top: 24px;
    background: #0a1226;
    color: rgba(255, 255, 255, .72);
    padding-block: 56px 0;
}

.mg-footer__grid {
    display: grid;
    gap: 36px;
    position: relative;
    z-index: 1;
}

@media (min-width: 900px) {
    .mg-footer__grid {
        grid-template-columns: 1.6fr 1fr 1fr;
        gap: 48px;
    }
}

/*
 | The uploaded logo can be anything — light, dark or transparent — so it sits
 | on a white plate instead of being colour-filtered, which keeps it legible
 | on the dark footer whatever the business uploads.
 */
.mg-footer__logo {
    height: 36px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    padding: 9px 13px;
    background: #fff;
    border-radius: 12px;
    box-sizing: content-box;
}

.mg-footer__about {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 380px;
}

.mg-footer__heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 18px;
}

.mg-footer__link {
    display: block;
    padding: 6px 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, .72);
    transition: color .18s ease;
}

.mg-footer__link:hover {
    color: #fff;
}

.mg-footer__contact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9375rem;
}

.mg-footer__contact i {
    margin-top: 5px;
    font-size: 0.75rem;
    color: var(--mg-primary);
}

.mg-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.mg-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 0.9375rem;
    transition: background-color .18s ease, transform .18s ease;
}

.mg-footer__social a:hover {
    background: var(--mg-primary);
    transform: translateY(-2px);
}

.mg-footer__bottom {
    position: relative;
    z-index: 1;
    margin-top: 44px;
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.mg-footer__watermark {
    position: absolute;
    left: 50%;
    bottom: -3%;
    transform: translateX(-50%);
    font-size: clamp(4rem, 16vw, 13rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    white-space: nowrap;
    color: rgba(255, 255, 255, .035);
    pointer-events: none;
    user-select: none;
}

/* =========================================================== PAGE HEADER */
/* Shared banner for the inner pages (contact, pricing). */

.mg-pagehead {
    position: relative;
    overflow: hidden;
    padding-top: var(--mg-nav-h);
    text-align: center;
    background:
        radial-gradient(120% 90% at 50% -20%, #dfeaff 0%, rgba(223, 234, 255, 0) 65%),
        linear-gradient(180deg, #f2f7ff 0%, #ffffff 100%);
}

.mg-pagehead__inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin-inline: auto;
    padding-block: 56px 40px;
}

@media (min-width: 900px) {
    .mg-pagehead__inner {
        padding-block: 84px 56px;
    }
}

.mg-pagehead__title {
    font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 700;
}

/*
 | Compact variant: a heading and nothing else, so a task-focused page (the
 | sign-up form) is visible without scrolling.
 */
.mg-pagehead--compact .mg-pagehead__inner {
    padding-block: 30px 22px;
}

@media (min-width: 900px) {
    .mg-pagehead--compact .mg-pagehead__inner {
        padding-block: 42px 26px;
    }
}

.mg-pagehead--compact .mg-pagehead__title {
    font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
}

.mg-pagehead__text {
    margin-top: 16px;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--mg-muted);
}

.mg-pagehead__text p:last-child {
    margin-bottom: 0;
}

/* ================================================================ FORMS */

.mg-form {
    display: grid;
    gap: 18px;
}

.mg-form__row {
    display: grid;
    gap: 18px;
}

@media (min-width: 640px) {
    .mg-form__row--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mg-field {
    display: grid;
    gap: 7px;
}

.mg-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--mg-ink);
}

.mg-input,
.mg-textarea {
    width: 100%;
    padding: 13px 16px;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--mg-ink);
    background: var(--mg-surface);
    border: 1px solid var(--mg-border-strong);
    border-radius: var(--mg-r-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.mg-input::placeholder,
.mg-textarea::placeholder {
    color: #9aa8bf;
}

.mg-input:focus,
.mg-textarea:focus {
    outline: none;
    border-color: var(--mg-primary);
    box-shadow: 0 0 0 4px rgba(25, 115, 254, .12);
}

.mg-textarea {
    min-height: 140px;
    resize: vertical;
}

/* native select, styled to match the text inputs */
.mg-select {
    width: 100%;
    padding: 13px 42px 13px 16px;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--mg-ink);
    border: 1px solid var(--mg-border-strong);
    border-radius: var(--mg-r-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--mg-surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7c99'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
}

.mg-select:focus {
    outline: none;
    border-color: var(--mg-primary);
    box-shadow: 0 0 0 4px rgba(25, 115, 254, .12);
}

/* ------------------------------------------------- searchable select ---
 | Progressive enhancement over a native <select>: JS wraps the select, hides
 | it and renders this combobox. The select itself stays in the DOM so the
 | form still submits the same field, and if the script never runs the user
 | just gets the plain select.
 */

.mg-combo {
    position: relative;
}

.mg-combo__native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.mg-combo__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    font-size: 0.9375rem;
    text-align: left;
    color: var(--mg-ink);
    background: var(--mg-surface);
    border: 1px solid var(--mg-border-strong);
    border-radius: var(--mg-r-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.mg-combo__trigger:hover {
    border-color: var(--mg-primary);
}

.mg-combo.is-open .mg-combo__trigger,
.mg-combo__trigger:focus-visible {
    outline: none;
    border-color: var(--mg-primary);
    box-shadow: 0 0 0 4px rgba(25, 115, 254, .12);
}

.mg-combo__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mg-combo__value--placeholder {
    color: #9aa8bf;
}

.mg-combo__caret {
    flex-shrink: 0;
    font-size: 0.6875rem;
    color: var(--mg-muted);
    transition: transform .2s ease;
}

.mg-combo.is-open .mg-combo__caret {
    transform: rotate(180deg);
}

.mg-combo__panel {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    padding: 8px;
    background: var(--mg-surface);
    border: 1px solid var(--mg-border);
    border-radius: var(--mg-r-md);
    box-shadow: var(--mg-shadow-md);
}

/* flips above the trigger when there isn't room below */
.mg-combo--up .mg-combo__panel {
    top: auto;
    bottom: calc(100% + 6px);
}

.mg-combo.is-open .mg-combo__panel {
    display: block;
}

.mg-combo__search {
    width: 100%;
    padding: 10px 13px;
    margin-bottom: 6px;
    font: inherit;
    font-size: 0.875rem;
    color: var(--mg-ink);
    background: var(--mg-tint);
    border: 1px solid transparent;
    border-radius: var(--mg-r-sm);
}

.mg-combo__search:focus {
    outline: none;
    background: var(--mg-surface);
    border-color: var(--mg-primary);
}

.mg-combo__list {
    max-height: 240px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mg-combo__option {
    padding: 9px 13px;
    border-radius: var(--mg-r-sm);
    font-size: 0.9375rem;
    color: var(--mg-ink-soft);
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mg-combo__option.is-active {
    background: var(--mg-tint);
    color: var(--mg-ink);
}

.mg-combo__option.is-selected {
    background: var(--mg-primary-soft);
    color: var(--mg-primary);
    font-weight: 600;
}

.mg-combo__empty {
    padding: 14px 13px;
    font-size: 0.875rem;
    color: var(--mg-muted);
    text-align: center;
}

.mg-field.has-error .mg-combo__trigger {
    border-color: #e05252;
    box-shadow: 0 0 0 4px rgba(224, 82, 82, .1);
}

/* file input */
.mg-file {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border: 1px dashed var(--mg-border-strong);
    border-radius: var(--mg-r-sm);
    background: var(--mg-tint);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}

.mg-file:hover {
    border-color: var(--mg-primary);
    background: var(--mg-primary-soft);
}

.mg-file input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.mg-file__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--mg-surface);
    color: var(--mg-primary);
    font-size: 0.8125rem;
}

.mg-file__text {
    font-size: 0.875rem;
    color: var(--mg-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* password field with a reveal toggle */
.mg-password {
    position: relative;
}

.mg-password .mg-input {
    padding-right: 48px;
}

.mg-password__toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--mg-muted);
    font-size: 0.875rem;
}

.mg-password__toggle:hover {
    color: var(--mg-primary);
    background: var(--mg-tint);
}

/* checkbox row */
.mg-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--mg-ink-soft);
    cursor: pointer;
}

.mg-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--mg-primary);
    cursor: pointer;
}

.mg-check a {
    color: var(--mg-primary);
    font-weight: 600;
}

.mg-check a:hover {
    text-decoration: underline;
}

.mg-hint {
    font-size: 0.8125rem;
    color: var(--mg-muted);
}

/* only flag invalid fields once the user has tried to submit */
.mg-form.is-validated .mg-input:invalid,
.mg-form.is-validated .mg-textarea:invalid,
.mg-form.is-validated .mg-select:invalid,
.mg-field.has-error .mg-input,
.mg-field.has-error .mg-select {
    border-color: #e05252;
    box-shadow: 0 0 0 4px rgba(224, 82, 82, .1);
}

.mg-field__error {
    display: none;
    font-size: 0.8125rem;
    color: #c33;
}

.mg-field.has-error .mg-field__error {
    display: block;
}

.mg-errors {
    margin-bottom: 24px;
}

.mg-errors ul {
    margin-top: 8px;
    padding-left: 18px;
    list-style: disc;
}

.mg-errors li {
    margin-top: 4px;
}

.mg-alert {
    display: none;
    padding: 14px 18px;
    border-radius: var(--mg-r-sm);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.mg-alert.is-shown {
    display: block;
}

.mg-alert--success {
    background: #e9f8f1;
    color: #0a6b45;
}

.mg-alert--error {
    background: #fdecec;
    color: #a32020;
}

/* ============================================================== CONTACT */

.mg-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

@media (min-width: 992px) {
    .mg-contact {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
        gap: 32px;
    }
}

.mg-contact__panel {
    padding: 28px;
    background: var(--mg-surface);
    border: 1px solid var(--mg-border);
    border-radius: var(--mg-r-lg);
    box-shadow: var(--mg-shadow-sm);
}

@media (min-width: 900px) {
    .mg-contact__panel {
        padding: 38px;
    }
}

.mg-contact__panel-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mg-contact__panel-text {
    margin-top: 8px;
    margin-bottom: 26px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--mg-muted);
}

.mg-info-list {
    display: grid;
    gap: 14px;
}

.mg-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border-radius: var(--mg-r-md);
    background: var(--mg-accent-1);
    transition: transform .22s ease, box-shadow .22s ease;
}

.mg-info-card:nth-child(4n+2) { background: var(--mg-accent-2); }
.mg-info-card:nth-child(4n+3) { background: var(--mg-accent-3); }
.mg-info-card:nth-child(4n+4) { background: var(--mg-accent-4); }

.mg-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mg-shadow-md);
}

.mg-info-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    color: var(--mg-primary);
    font-size: 1rem;
    box-shadow: var(--mg-shadow-xs);
}

.mg-info-card__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mg-muted);
}

.mg-info-card__value {
    margin-top: 5px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.mg-info-card__value a:hover {
    color: var(--mg-primary);
}

/* ================================================================ ABOUT */

.mg-showcase-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

@media (min-width: 992px) {
    .mg-showcase-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 56px;
    }
}

.mg-showcase-split .mg-section__title,
.mg-showcase-split .mg-section__sub {
    max-width: none;
}

.mg-showcase-split .mg-section__sub + .mg-section__sub {
    margin-top: 14px;
}

.mg-timeline {
    position: relative;
    display: grid;
    gap: 22px;
    padding: 30px 30px 30px 34px;
    border-radius: var(--mg-r-lg);
    background: var(--mg-accent-1);
}

.mg-timeline__item {
    position: relative;
    padding-left: 26px;
}

/* the connecting rail, drawn between the dots */
.mg-timeline__item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 18px;
    bottom: -26px;
    left: 5px;
    width: 2px;
    background: var(--mg-border-strong);
}

.mg-timeline__dot {
    position: absolute;
    top: 6px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mg-primary);
    box-shadow: 0 0 0 4px rgba(25, 115, 254, .15);
}

.mg-timeline__year {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mg-primary);
}

.mg-timeline__text {
    margin-top: 7px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--mg-ink-soft);
}

/* ============================================================== PRICING */

.mg-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    margin-top: 28px;
    border-radius: var(--mg-r-pill);
    background: var(--mg-surface);
    border: 1px solid var(--mg-border);
    box-shadow: var(--mg-shadow-xs);
}

.mg-toggle__btn {
    padding: 9px 22px;
    border-radius: var(--mg-r-pill);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mg-muted);
    transition: background-color .2s ease, color .2s ease;
}

.mg-toggle__btn.is-active {
    background: var(--mg-primary);
    color: #fff;
}

.mg-toggle__save {
    margin-left: 6px;
    padding: 3px 9px;
    border-radius: var(--mg-r-pill);
    background: #e9f8f1;
    color: #0a6b45;
    font-size: 0.6875rem;
    font-weight: 700;
}

.mg-toggle__btn.is-active .mg-toggle__save {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.mg-plans {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

@media (min-width: 700px) {
    .mg-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1050px) {
    .mg-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mg-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px 28px;
    background: var(--mg-surface);
    border: 1px solid var(--mg-border);
    border-radius: var(--mg-r-lg);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.mg-plan:hover {
    transform: translateY(-4px);
    border-color: var(--mg-border-strong);
    box-shadow: var(--mg-shadow-md);
}

/* the highlighted plan */
.mg-plan--popular {
    border-color: transparent;
    background: linear-gradient(160deg, #0d3fa5 0%, #0a1f44 100%);
    color: #fff;
    box-shadow: var(--mg-shadow-lg);
}

.mg-plan--popular .mg-plan__name,
.mg-plan--popular .mg-plan__price,
.mg-plan--popular .mg-plan__feature {
    color: #fff;
}

.mg-plan--popular .mg-plan__desc,
.mg-plan--popular .mg-plan__period {
    color: rgba(255, 255, 255, .72);
}

.mg-plan--popular .mg-plan__features {
    border-top-color: rgba(255, 255, 255, .16);
}

.mg-plan--popular .mg-plan__feature i {
    color: #7ee2b8;
}

.mg-plan__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 13px;
    border-radius: var(--mg-r-pill);
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mg-plan__name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--mg-ink);
}

.mg-plan__desc {
    margin-top: 8px;
    min-height: 42px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--mg-muted);
}

.mg-plan__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--mg-ink);
}

/* once the cards sit side by side, reserve room for a wrapped billing
   period so every CTA lines up across the row */
@media (min-width: 700px) {
    .mg-plan__price {
        min-height: 76px;
    }
}

.mg-plan__period {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--mg-muted);
}

.mg-plan__cta {
    margin-top: 24px;
}

.mg-plan__features {
    display: grid;
    gap: 12px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--mg-border);
}

.mg-plan__feature {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--mg-ink-soft);
}

.mg-plan__feature i {
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #00a761;
}

.mg-plans__empty {
    grid-column: 1 / -1;
    padding: 48px;
    text-align: center;
    border: 1px dashed var(--mg-border-strong);
    border-radius: var(--mg-r-lg);
    color: var(--mg-muted);
}

/* ============================================================= REGISTER */

.mg-register {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

@media (min-width: 1050px) {
    .mg-register {
        grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
        gap: 32px;
    }
}

.mg-register__card {
    padding: 26px;
    background: var(--mg-surface);
    border: 1px solid var(--mg-border);
    border-radius: var(--mg-r-lg);
    box-shadow: var(--mg-shadow-sm);
}

@media (min-width: 900px) {
    .mg-register__card {
        padding: 40px;
    }
}

/* ------------------------------------------------------------- stepper */

.mg-steps {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
}

.mg-step {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.mg-step:last-child {
    flex: 0 0 auto;
}

.mg-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--mg-tint);
    border: 1px solid var(--mg-border-strong);
    color: var(--mg-muted);
    font-size: 0.875rem;
    font-weight: 700;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.mg-step__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mg-muted);
    white-space: nowrap;
    transition: color .25s ease;
}

@media (max-width: 700px) {
    .mg-step__label {
        display: none;
    }
}

.mg-step__bar {
    flex: 1;
    min-width: 16px;
    height: 2px;
    margin-inline: 12px;
    border-radius: var(--mg-r-pill);
    background: var(--mg-border-strong);
    transition: background-color .3s ease;
}

.mg-step.is-active .mg-step__num {
    background: var(--mg-primary);
    border-color: var(--mg-primary);
    color: #fff;
}

.mg-step.is-active .mg-step__label {
    color: var(--mg-ink);
}

.mg-step.is-done .mg-step__num {
    background: #e9f8f1;
    border-color: #b6e6d0;
    color: #0a6b45;
}

.mg-step.is-done .mg-step__label {
    color: var(--mg-ink-soft);
}

.mg-step.is-done .mg-step__bar {
    background: var(--mg-primary);
}

/* --------------------------------------------------------- step panels */

.mg-panel {
    display: none;
}

.mg-panel.is-current {
    display: block;
    animation: mg-panel-in .35s cubic-bezier(.22, 1, .36, 1);
}

@keyframes mg-panel-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.mg-panel__title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mg-panel__text {
    margin-top: 6px;
    margin-bottom: 26px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--mg-muted);
}

.mg-form__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--mg-border);
}

.mg-form__nav .mg-btn--primary {
    margin-left: auto;
}

/* ------------------------------------------------------- package aside */

.mg-summary {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: var(--mg-r-lg);
    background: linear-gradient(160deg, #0d3fa5 0%, #0a1f44 100%);
    color: #fff;
    box-shadow: var(--mg-shadow-md);
}

.mg-summary::before {
    content: '';
    position: absolute;
    top: -110px;
    right: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}

.mg-summary__label {
    position: relative;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
}

.mg-summary__name {
    position: relative;
    margin-top: 8px;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mg-summary__price {
    position: relative;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.mg-summary__period {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0;
    color: rgba(255, 255, 255, .7);
}

.mg-summary__list {
    position: relative;
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.mg-summary__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .85);
}

.mg-summary__item i {
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 0.6875rem;
    color: #7ee2b8;
}

.mg-aside-card {
    margin-top: 20px;
    padding: 24px;
    border-radius: var(--mg-r-lg);
    background: var(--mg-accent-1);
}

.mg-aside-card__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}

.mg-aside-list {
    display: grid;
    gap: 11px;
}

/* ================================================================ MODAL */

.mg-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
}

.mg-modal.is-open {
    visibility: visible;
}

.mg-modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 68, .5);
    opacity: 0;
    transition: opacity .22s ease;
}

.mg-modal.is-open .mg-modal__scrim {
    opacity: 1;
}

.mg-modal__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(640px, 100%);
    max-height: 85vh;
    background: var(--mg-surface);
    border-radius: var(--mg-r-lg);
    box-shadow: var(--mg-shadow-lg);
    opacity: 0;
    transform: translateY(14px) scale(.98);
    transition: opacity .22s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
}

.mg-modal.is-open .mg-modal__panel {
    opacity: 1;
    transform: none;
}

.mg-modal__head,
.mg-modal__foot {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.mg-modal__head {
    border-bottom: 1px solid var(--mg-border);
}

.mg-modal__foot {
    justify-content: flex-end;
    border-top: 1px solid var(--mg-border);
}

.mg-modal__title {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mg-modal__body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--mg-ink-soft);
}

.mg-modal__body p {
    margin-bottom: 12px;
}

/* ============================================================== UTILITIES */

.mg-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}

.mg-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.mg-no-scroll {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .mg-site *,
    .mg-site *::before,
    .mg-site *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }

    .mg-reveal {
        opacity: 1;
        transform: none;
    }
}
