/* ==========================================================================
   mySymphony – Main landing page (resources/views/landing/home/index.blade.php)
   Every class is prefixed "msh-" so nothing leaks into other pages.
   ========================================================================== */

:root {
    --msh-primary: #696cff;
    --msh-primary-dark: #5457e6;
    --msh-primary-deep: #3f3fc4;
    --msh-primary-soft: #eef0ff;
    --msh-primary-softer: #f6f7ff;
    --msh-navy: #262254;
    --msh-ink: #3b3f5c;
    --msh-muted: #6b6f8a;
    --msh-green: #47d90c;
    --msh-green-dark: #3ebf0a;
    --msh-green-soft: #e9fbe1;
    --msh-border: rgba(38, 34, 84, .08);
    --msh-shadow-sm: 0 4px 14px rgba(38, 34, 84, .06);
    --msh-shadow: 0 18px 45px rgba(38, 34, 84, .10);
    --msh-shadow-lg: 0 30px 80px rgba(63, 63, 196, .22);
    --msh-radius: 1.25rem;
}

.msh {
    font-family: 'Nunito Sans', sans-serif;
    color: var(--msh-ink);
    overflow-x: clip;
}
.msh h1, .msh h2, .msh h3, .msh h4 { color: var(--msh-navy); letter-spacing: -.02em; }

.msh-section { padding: 6.5rem 0; position: relative; }
@media (max-width: 767.98px) { .msh-section { padding: 4.5rem 0; } }

/* ---------- Shared pieces ---------- */
.msh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: var(--msh-primary-soft);
    color: var(--msh-primary-deep);
    font-weight: 700;
    font-size: .875rem;
    letter-spacing: .02em;
}
.msh-eyebrow i { color: var(--msh-primary); }

.msh-section-title { font-weight: 900; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; }
.msh-section-lead { font-size: 1.2rem; color: var(--msh-muted); max-width: 720px; margin-inline: auto; }

.msh-text-gradient {
    background: linear-gradient(90deg, var(--msh-primary) 0%, #8f5cff 60%, var(--msh-primary-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* The one CTA used everywhere: "Start My Free 30-Day Trial" */
.msh-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    background: var(--msh-green);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    border: 0;
    box-shadow: 0 12px 28px rgba(71, 217, 12, .35);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.msh-cta:hover, .msh-cta:focus-visible {
    color: #fff;
    background: var(--msh-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(71, 217, 12, .45);
}
.msh-cta i { transition: transform .2s ease; }
.msh-cta:hover i { transform: translateX(4px); }
@media (max-width: 575.98px) { .msh-cta { width: 100%; padding: .95rem 1.25rem; font-size: .95rem; } }

.msh-note { display: flex; justify-content: center; align-items: center; gap: .4rem; font-size: .95rem; color: var(--msh-muted); }
.msh-note i { position: static !important; color: var(--msh-green-dark); margin: 0 !important; }

.msh-link {
    color: var(--msh-primary);
    font-weight: 700;
    text-decoration: none;
}
.msh-link:hover { color: var(--msh-primary-deep); }
.msh-link i { transition: transform .2s ease; display: inline-block; }
.msh-link:hover i { transform: translateX(3px); }

/* Browser-style frame around real screenshots */
.msh-frame {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid var(--msh-border);
    box-shadow: var(--msh-shadow);
    overflow: hidden;
}
.msh-frame__bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .7rem 1rem;
    background: #f7f7fb;
    border-bottom: 1px solid var(--msh-border);
}
.msh-frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; }
.msh-frame__bar span:nth-child(2) { background: #ffc94d; }
.msh-frame__bar span:nth-child(3) { background: #4fd16b; }
.msh-frame__url {
    margin-left: .75rem;
    flex: 1;
    max-width: 320px;
    padding: .2rem .8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--msh-border);
    font-size: .75rem;
    color: var(--msh-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msh-frame img { display: block; width: 100%; height: auto; }

/* Small floating UI cards over screenshots */
.msh-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1rem;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--msh-border);
    border-radius: 1rem;
    box-shadow: var(--msh-shadow);
    backdrop-filter: blur(6px);
    z-index: 2;
    animation: msh-bob 6s ease-in-out infinite;
}
.msh-float__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    background: var(--msh-primary);
}
.msh-float__icon--green { background: var(--msh-green); }
.msh-float strong { display: block; color: var(--msh-navy); font-size: .9rem; line-height: 1.2; }
.msh-float small { color: var(--msh-muted); font-size: .78rem; }
@keyframes msh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 1. Hero ---------- */
.msh-hero {
    position: relative;
    padding: 5.5rem 0 0;
    background:
        radial-gradient(1200px 500px at 50% -10%, rgba(105, 108, 255, .22), transparent 70%),
        radial-gradient(600px 400px at 95% 20%, rgba(143, 92, 255, .14), transparent 70%),
        radial-gradient(500px 360px at 0% 40%, rgba(71, 217, 12, .08), transparent 70%),
        linear-gradient(180deg, var(--msh-primary-softer) 0%, #fff 100%);
    overflow: hidden;
}
.msh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(105, 108, 255, .16) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
    pointer-events: none;
}
.msh-hero__title {
    font-weight: 900;
    font-size: clamp(2.4rem, 5.4vw, 4.4rem);
    line-height: 1.05;
    max-width: 980px;
    margin-inline: auto;
}
.msh-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--msh-muted); max-width: 760px; margin-inline: auto; }

.msh-offers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    list-style: none;
    padding: 0;
}
.msh-offers li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .95rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--msh-border);
    box-shadow: var(--msh-shadow-sm);
    font-weight: 700;
    font-size: .92rem;
    color: var(--msh-navy);
}
.msh-offers i { color: var(--msh-green-dark); font-size: 1.05rem; }

.msh-hero__visual {
    position: relative;
    max-width: 1140px;
    margin: 4rem auto 0;
    padding: 0 1rem;
}
.msh-hero__visual::before {
    content: "";
    position: absolute;
    inset: 12% 6% -4%;
    background: linear-gradient(135deg, var(--msh-primary), #8f5cff);
    filter: blur(70px);
    opacity: .35;
    border-radius: 2rem;
    z-index: 0;
}
.msh-hero__visual .msh-frame { position: relative; z-index: 1; border-radius: 1.1rem 1.1rem 0 0; border-bottom: 0; box-shadow: var(--msh-shadow-lg); }
.msh-hero__float-1 { left: -1.5rem; top: 30%; }
.msh-hero__float-2 { right: -1.5rem; top: 55%; animation-delay: -3s; }
@media (max-width: 991.98px) {
    .msh-hero__float-1 { left: .25rem; top: auto; bottom: 1.5rem; }
    .msh-hero__float-2 { display: none; }
}
@media (max-width: 575.98px) { .msh-hero__float-1 { display: none; } }

/* ---------- 2. Standout features ---------- */
.msh-feature + .msh-feature { margin-top: 7rem; }
@media (max-width: 991.98px) { .msh-feature + .msh-feature { margin-top: 4.5rem; } }

.msh-feature__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, var(--msh-primary), #8f5cff);
    color: #fff;
    font-weight: 900;
    font-size: 1.45rem;
    box-shadow: 0 10px 24px rgba(105, 108, 255, .35);
}
.msh-feature__kicker {
    color: var(--msh-primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.2;
}
.msh-feature__title { font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; }
.msh-feature__lead { font-size: 1.2rem; font-weight: 700; color: var(--msh-navy); }
.msh-feature__text { font-size: 1.08rem; color: var(--msh-muted); }

.msh-chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.msh-chips li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    border-radius: .85rem;
    background: var(--msh-primary-softer);
    border: 1px solid rgba(105, 108, 255, .14);
    font-weight: 700;
    font-size: .92rem;
    color: var(--msh-navy);
}
.msh-chips i { color: var(--msh-primary); font-size: 1.05rem; }

.msh-feature__visual { position: relative; }
.msh-feature__visual::before {
    content: "";
    position: absolute;
    inset: 8% -4% -6% 8%;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--msh-primary-soft), rgba(143, 92, 255, .12));
    z-index: 0;
}
.msh-feature--reverse .msh-feature__visual::before { inset: 8% 8% -6% -4%; }
.msh-feature__visual > :not(.msh-float) { position: relative; z-index: 1; }

/* Grid View zoom: shows the teacher columns of the real screenshot */
.msh-zoom { aspect-ratio: 16 / 11; overflow: hidden; }
.msh-zoom img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; transform: scale(1.02); }
.msh-gridtag-1 { top: -1.2rem; right: 1.5rem; }
.msh-gridtag-2 { bottom: -1.2rem; left: 1.5rem; animation-delay: -3s; }

/* AI Front Desk: live call + booking example */
.msh-call {
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid var(--msh-border);
    box-shadow: var(--msh-shadow);
    overflow: hidden;
    max-width: 520px;
    margin-inline: auto;
}
.msh-call__head {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, var(--msh-primary), var(--msh-primary-deep));
    color: #fff;
}
.msh-call__avatar { position: relative; flex: 0 0 52px; }
.msh-call__avatar img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .8); }
.msh-call__avatar::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--msh-green);
    border: 2px solid #fff;
}
.msh-call__name { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.msh-call__sub { font-size: .82rem; opacity: .85; }
.msh-call__live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font-size: .8rem;
    font-weight: 700;
}
.msh-wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.msh-wave span { width: 3px; height: 100%; border-radius: 2px; background: #fff; animation: msh-wave 1s ease-in-out infinite; }
.msh-wave span:nth-child(2) { animation-delay: -.8s; }
.msh-wave span:nth-child(3) { animation-delay: -.6s; }
.msh-wave span:nth-child(4) { animation-delay: -.4s; }
@keyframes msh-wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.msh-call__body { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; background: var(--msh-primary-softer); min-height: 380px; }
.msh-msg {
    max-width: 82%;
    padding: .75rem 1rem;
    border-radius: 1.1rem;
    font-size: .95rem;
    line-height: 1.45;
    box-shadow: var(--msh-shadow-sm);
}
.msh-msg--ai { align-self: flex-start; background: #fff; color: var(--msh-ink); border-bottom-left-radius: .35rem; }
.msh-msg--caller { align-self: flex-end; background: var(--msh-primary); color: #fff; border-bottom-right-radius: .35rem; }
.msh-msg--booked {
    align-self: stretch;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: .8rem;
    background: #fff;
    border: 1px solid rgba(71, 217, 12, .35);
}
.msh-msg--booked .msh-float__icon { flex-basis: 38px; width: 38px; height: 38px; }
.msh-msg--booked strong { color: var(--msh-navy); display: block; }
.msh-msg--booked small { color: var(--msh-muted); }

.msh-typing { align-self: flex-start; display: none; gap: 4px; padding: .8rem 1rem; background: #fff; border-radius: 1.1rem; border-bottom-left-radius: .35rem; box-shadow: var(--msh-shadow-sm); }
.msh-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9bbe6; animation: msh-dot 1.2s infinite; }
.msh-typing span:nth-child(2) { animation-delay: .15s; }
.msh-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes msh-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Messages are revealed one by one by JS (only when JS + motion are available) */
.msh-js .msh-call [data-step] { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.msh-js .msh-call [data-step].is-shown { opacity: 1; transform: none; }
.msh-js .msh-call .msh-typing { display: none; }
.msh-js .msh-call .msh-typing.is-shown { display: inline-flex; }

/* Student Learning Dashboard: two stacked screenshots */
.msh-stack { position: relative; padding-bottom: 18%; }
.msh-stack__back { width: 92%; }
.msh-stack__front { position: absolute !important; right: 0; bottom: 0; width: 62%; box-shadow: var(--msh-shadow-lg); }
.msh-stack .msh-frame__bar { padding: .5rem .8rem; }
.msh-stack .msh-frame__bar span { width: 8px; height: 8px; }

.msh-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 576px) { .msh-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.msh-tool {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--msh-border);
    box-shadow: var(--msh-shadow-sm);
    font-weight: 700;
    font-size: .92rem;
    color: var(--msh-navy);
    line-height: 1.25;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.msh-tool:hover { transform: translateY(-3px); box-shadow: var(--msh-shadow); border-color: rgba(105, 108, 255, .3); }
.msh-tool i {
    width: 38px;
    height: 38px;
    border-radius: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--msh-primary-soft);
    color: var(--msh-primary);
    font-size: 1.1rem;
}

/* ---------- Video: product tour with a branded thumbnail ---------- */
.msh-video { position: relative; max-width: 1040px; margin-inline: auto; }
.msh-video::before {
    content: "";
    position: absolute;
    inset: 8% 4% -5%;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--msh-primary), #8f5cff);
    filter: blur(60px);
    opacity: .3;
}
.msh-video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--msh-navy);
    border: 6px solid #fff;
    box-shadow: var(--msh-shadow-lg);
}
.msh-video__frame video { display: block; width: 100%; height: 100%; object-fit: cover; accent-color: var(--msh-primary); }

.msh-video__thumb {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: none;
    color: #fff;
    z-index: 2;
}
.msh-video__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .6s ease;
}
.msh-video__thumb:hover img { transform: scale(1.03); }
.msh-video__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(38, 34, 84, .25), rgba(38, 34, 84, .75) 75%),
        linear-gradient(135deg, rgba(105, 108, 255, .55), rgba(38, 34, 84, .65));
}
.msh-video__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
}
.msh-video__play {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--msh-primary);
    font-size: 3rem;
    padding-left: .3rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
    transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.msh-video__play::before,
.msh-video__play::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .55);
    animation: msh-ping 2.4s ease-out infinite;
}
.msh-video__play::after { animation-delay: 1.2s; }
@keyframes msh-ping { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.msh-video__thumb:hover .msh-video__play,
.msh-video__thumb:focus-visible .msh-video__play { transform: scale(1.08); background: var(--msh-green); color: #fff; }
.msh-video__thumb:focus-visible { outline: 3px solid var(--msh-green); outline-offset: -6px; }

.msh-video__label { text-align: center; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.msh-video__label strong { display: block; font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 900; }
.msh-video__label small {
    display: inline-flex;
    align-items: center;
    margin-top: .4rem;
    padding: .2rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-weight: 700;
    font-size: .85rem;
}
.msh-video__brand {
    position: absolute;
    left: 1.25rem;
    top: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
    font-weight: 800;
    font-size: .85rem;
}
.msh-video.is-playing .msh-video__thumb { display: none; }
@media (max-width: 575.98px) {
    .msh-video__frame { border-width: 4px; border-radius: 1rem; }
    .msh-video__play { width: 68px; height: 68px; font-size: 2.2rem; }
    .msh-video__brand { display: none; }
}

/* ---------- 3. Offers: free migration + 30-day trial ---------- */
.msh-offers-section { background: linear-gradient(180deg, #fff 0%, var(--msh-primary-softer) 100%); }
.msh-offer {
    height: 100%;
    padding: 2.25rem;
    border-radius: 1.75rem;
    background: #fff;
    border: 1px solid var(--msh-border);
    box-shadow: var(--msh-shadow);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.msh-offer:hover { transform: translateY(-4px); box-shadow: var(--msh-shadow-lg); }
.msh-offer::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    top: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(105, 108, 255, .14), transparent 70%);
}
.msh-offer--green::after { background: radial-gradient(circle, rgba(71, 217, 12, .16), transparent 70%); }
.msh-offer__art { height: 170px; margin-bottom: 1.5rem; }
.msh-offer__art svg { height: 100%; width: auto; max-width: 100%; }
.msh-offer__badge {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--msh-primary-soft);
    color: var(--msh-primary-deep);
}
.msh-offer--green .msh-offer__badge { background: var(--msh-green-soft); color: #2c8a07; }
.msh-offer__title { font-weight: 900; font-size: 1.75rem; }
.msh-offer__lead { font-weight: 700; color: var(--msh-navy); font-size: 1.1rem; }
.msh-offer__text { color: var(--msh-muted); font-size: 1.05rem; margin-bottom: 0; }
.msh-offer__plus {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--msh-navy);
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--msh-shadow);
    z-index: 3;
    border: 5px solid #fff;
}

/* ---------- 4. Everything else ---------- */
.msh-tile {
    height: 100%;
    padding: 1.6rem;
    border-radius: var(--msh-radius);
    background: #fff;
    border: 1px solid var(--msh-border);
    box-shadow: var(--msh-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.msh-tile:hover { transform: translateY(-4px); box-shadow: var(--msh-shadow); border-color: rgba(105, 108, 255, .28); }
.msh-tile__icon {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--msh-primary);
    background: var(--msh-primary-soft);
    margin-bottom: 1.1rem;
    transition: background-color .2s ease, color .2s ease;
}
.msh-tile:hover .msh-tile__icon { background: var(--msh-primary); color: #fff; }
.msh-tile h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .35rem; }
.msh-tile p { color: var(--msh-muted); margin-bottom: 0; font-size: .95rem; }

/* ---------- 5. Testimonials ---------- */
.msh-testimonials { background: linear-gradient(180deg, #fff 0%, var(--msh-primary-softer) 50%, #fff 100%); overflow: hidden; }

.msh-marquee {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Soft fade at both edges */
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.msh-marquee__row { overflow: hidden; }
.msh-marquee__track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    padding: .75rem 0 1.25rem;
    animation: msh-marquee 70s linear infinite;
}
.msh-marquee__row--reverse .msh-marquee__track { animation-direction: reverse; animation-duration: 80s; }
.msh-marquee__row:hover .msh-marquee__track,
.msh-marquee__row:focus-within .msh-marquee__track { animation-play-state: paused; }
/* The track holds the cards twice, so moving it by half (plus half a gap) loops seamlessly. */
@keyframes msh-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - .75rem)); } }

.msh-quote {
    position: relative;
    flex: 0 0 auto;
    width: 380px;
    margin: 0;
    padding: 1.75rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--msh-border);
    border-radius: 1.5rem;
    box-shadow: var(--msh-shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.msh-quote:hover { transform: translateY(-4px); box-shadow: var(--msh-shadow); border-color: rgba(105, 108, 255, .3); }
@media (max-width: 575.98px) { .msh-quote { width: 300px; padding: 1.4rem; } }

.msh-quote__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: -.25rem;
    border-radius: .85rem;
    background: var(--msh-primary-soft);
    color: var(--msh-primary);
    font-size: 1.9rem;
    line-height: 1;
}
.msh-quote__text {
    position: relative;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--msh-ink);
}
.msh-quote__who {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--msh-border);
}
.msh-quote__who strong { display: block; color: var(--msh-navy); font-weight: 800; line-height: 1.2; }
.msh-quote__who small { color: var(--msh-muted); font-size: .88rem; }
.msh-quote__avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--msh-primary), var(--msh-primary-deep));
    box-shadow: 0 6px 14px rgba(105, 108, 255, .3);
}
.msh-quote__avatar--green { background: linear-gradient(135deg, #5fe32a, #2f9e08); box-shadow: 0 6px 14px rgba(71, 217, 12, .3); }
.msh-quote__avatar--violet { background: linear-gradient(135deg, #a67cff, #6d3fe0); box-shadow: 0 6px 14px rgba(143, 92, 255, .3); }
.msh-quote__avatar--navy { background: linear-gradient(135deg, #4a4590, var(--msh-navy)); box-shadow: 0 6px 14px rgba(38, 34, 84, .3); }

/* Reduced motion: no gliding; each row scrolls sideways by hand instead, without the duplicate cards. */
@media (prefers-reduced-motion: reduce) {
    .msh-marquee { mask-image: none; -webkit-mask-image: none; }
    .msh-marquee__row { overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: 1rem; }
    .msh-marquee__track { animation: none; }
    .msh-quote { scroll-snap-align: start; }
    .msh-quote[aria-hidden="true"] { display: none; }
}

/* ---------- 6. Final CTA ---------- */
.msh-final {
    position: relative;
    padding: 5rem 1.5rem;
    border-radius: 2rem;
    background:
        radial-gradient(600px 300px at 10% 0%, rgba(255, 255, 255, .18), transparent 70%),
        radial-gradient(500px 300px at 100% 100%, rgba(71, 217, 12, .22), transparent 70%),
        linear-gradient(135deg, var(--msh-primary) 0%, var(--msh-primary-deep) 60%, var(--msh-navy) 100%);
    overflow: hidden;
    box-shadow: var(--msh-shadow-lg);
}
.msh-final::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}
.msh-final > * { position: relative; }
.msh-final h2 { color: #fff; font-weight: 900; font-size: clamp(2rem, 4vw, 3.2rem); }
.msh-final__lead { color: #fff; font-weight: 800; font-size: 1.3rem; }
.msh-final__text { color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.msh-final .msh-note { color: rgba(255, 255, 255, .85); }
.msh-final .msh-note i { color: var(--msh-green); }
.msh-final__notes { position: absolute; inset: 0; pointer-events: none; }
.msh-final__notes i { position: absolute; color: rgba(255, 255, 255, .14); }

/* ---------- Scroll reveal (only when JS and motion are available) ---------- */
.msh-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.msh-js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .msh *, .msh *::before, .msh *::after { animation: none !important; transition: none !important; }
    .msh-js [data-reveal], .msh-js .msh-call [data-step] { opacity: 1 !important; transform: none !important; }
    .msh-js .msh-call .msh-typing { display: none !important; }
}
