/* =========================================================
   MASAJES ULTRA — HOME V2 / PHASE 3B
   ========================================================= */

.muHomeV2 {
    width: min(calc(100% - (var(--mu-page-gutter) * 2)), var(--mu-page-max));
    max-width: var(--mu-page-max);
    margin: 0 auto;
    padding: 54px 0 64px;
    display: grid;
    gap: 26px;
}

.muEyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #bb7d2d;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.muEyebrow--dark {
    color: #f2bd62;
}

.muHomeHero {
    min-height: 485px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 54px;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(2, 21, 39, .98) 0%, rgba(3, 25, 46, .92) 37%, rgba(3, 24, 43, .48) 68%, rgba(3, 24, 43, .12) 100%),
        url("/images/mu/hero-massage.png") center / cover no-repeat;
    box-shadow: 0 24px 58px rgba(5, 31, 49, .10);
}

.muHomeHero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    z-index: -1;
    background: linear-gradient(to top, rgba(1, 16, 29, .28), transparent);
}

.muHomeHero__content {
    width: min(560px, 52%);
    color: #fff;
}

.muEyebrow--hero {
    padding: 9px 13px;
    border: 1px solid rgba(115, 180, 224, .32);
    border-radius: 999px;
    background: rgba(18, 97, 151, .22);
    color: #f0b85f;
}

.muHomeHero h1 {
    margin: 22px 0 18px;
    color: #fff;
    font-size: clamp(48px, 4.7vw, 66px);
    font-weight: 900;
    line-height: .96;
    letter-spacing: -.045em;
}

.muHomeHero p {
    max-width: 510px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 16px;
    line-height: 1.62;
}

.muHomeHero__actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.muButton {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

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

.muButton--primary {
    background: #0c70ad;
    color: #fff;
}

.muButton--glass {
    border-color: rgba(255,255,255,.36);
    background: rgba(255,255,255,.08);
    color: #fff;
    backdrop-filter: blur(10px);
}

.muHomeStats {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.muHomeStats article {
    min-height: 112px;
    padding: 22px 28px;
    position: relative;
}

.muHomeStats article + article::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 1px;
    background: var(--mu-border);
}

.muHomeStats span {
    display: block;
    color: #7b8897;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.muHomeStats strong {
    display: block;
    margin-top: 5px;
    color: var(--mu-ink);
    font-size: 27px;
    line-height: 1;
    letter-spacing: -.03em;
}

.muHomeStats p {
    margin: 7px 0 0;
    color: #667184;
    font-size: 12.5px;
    line-height: 1.35;
}

.muHomeSection {
    padding: 42px;
}

.muHomeSection__head {
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
    gap: 44px;
    align-items: end;
}

.muHomeSection__head h2,
.muHomeBenefits__head h2,
.muHomeCta h2 {
    margin: 10px 0 0;
    color: var(--mu-ink);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.04em;
}

.muHomeSection__side,
.muHomeSection__head > p {
    align-self: end;
}

.muHomeSection__side p,
.muHomeSection__head > p {
    margin: 0;
    color: #697588;
    font-size: 14px;
    line-height: 1.55;
}

.muTextLink {
    margin-top: 10px;
    display: inline-flex;
    color: #0b6696;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

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

.muServiceCard {
    min-width: 0;
    min-height: 264px;
    padding: 22px;
    border: 1px solid rgba(7, 27, 42, .09);
    border-radius: 18px;
    background: #fbfaf7;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(7, 27, 42, .035);
}

.muServiceCard__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.muServiceCard__icon {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(201, 151, 73, .28);
    border-radius: 14px;
    background: #fff;
    display: grid;
    place-items: center;
}

.muServiceCard__icon img {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

.muServiceCard__category {
    padding: 6px 9px;
    border: 1px solid rgba(201, 151, 73, .22);
    border-radius: 999px;
    background: #fbf3e4;
    color: #a47a3d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.muServiceCard__content {
    margin-top: 16px;
}

.muServiceCard__content h3 {
    margin: 0;
    color: var(--mu-ink);
    font-size: 21px;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.muServiceCard__content p {
    margin: 9px 0 0;
    max-width: 520px;
    color: #5e6c7f;
    font-size: 13px;
    line-height: 1.5;
}

.muServiceCard__footer {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.muServiceCard__meta {
    display: flex;
    gap: 22px;
}

.muServiceCard__meta span {
    display: grid;
    gap: 3px;
}

.muServiceCard__meta small {
    color: #84909c;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.muServiceCard__meta strong {
    color: var(--mu-ink);
    font-size: 16px;
    line-height: 1;
}

.muServiceCard__action {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 11px;
    background: #0a5f8e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.muHomeBenefits {
    padding: 44px;
    border-radius: 24px;
    background: linear-gradient(125deg, #10283e 0%, #073c70 52%, #0a4e91 100%);
    color: #fff;
    box-shadow: 0 22px 52px rgba(4, 37, 72, .13);
}

.muHomeBenefits__head {
    max-width: 750px;
}

.muHomeBenefits__head h2 {
    color: #fff;
}

.muHomeBenefits__head p {
    max-width: 610px;
    margin: 13px 0 0;
    color: rgba(255,255,255,.73);
    font-size: 14px;
    line-height: 1.55;
}

.muHomeBenefits__grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.muHomeBenefits__grid article {
    min-height: 120px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 15px;
    align-items: start;
}

.muHomeBenefits__grid article > span {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(242,189,98,.35);
    border-radius: 12px;
    color: #ffc865;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
}

.muHomeBenefits__grid h3 {
    margin: 1px 0 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.1;
}

.muHomeBenefits__grid p {
    margin: 7px 0 0;
    color: rgba(255,255,255,.7);
    font-size: 12.5px;
    line-height: 1.45;
}

.muHomeSection__head--workflow {
    margin-bottom: 24px;
}

.muWorkflow {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--mu-border);
    border-radius: 18px;
    overflow: hidden;
    background: #fbfaf7;
}

.muWorkflow li {
    min-height: 128px;
    padding: 20px;
    display: flex;
    gap: 13px;
    position: relative;
}

.muWorkflow li + li {
    border-left: 1px solid var(--mu-border);
}

.muWorkflow li > span {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
    background: #edf4f8;
    color: #075b89;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
}

.muWorkflow h3 {
    margin: 2px 0 0;
    color: var(--mu-ink);
    font-size: 14px;
    line-height: 1.2;
}

.muWorkflow p {
    margin: 7px 0 0;
    color: #697588;
    font-size: 11.5px;
    line-height: 1.4;
}

.muTestimonials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.muTestimonials article {
    padding: 20px;
    border: 1px solid var(--mu-border);
    border-radius: 16px;
    background: #fbfaf7;
}

.muTestimonials__stars {
    color: #d59a38;
    font-size: 12px;
    letter-spacing: .08em;
}

.muTestimonials article > p {
    min-height: 64px;
    margin: 12px 0 16px;
    color: #435266;
    font-size: 13px;
    line-height: 1.55;
}

.muTestimonials footer {
    display: grid;
    gap: 2px;
}

.muTestimonials footer strong {
    color: var(--mu-ink);
    font-size: 12px;
}

.muTestimonials footer span {
    color: #7c8997;
    font-size: 11px;
}

.muHomeEmpty {
    padding: 28px;
    border: 1px dashed var(--mu-border);
    border-radius: 16px;
    display: grid;
    gap: 6px;
    color: #6b7787;
}

.muHomeEmpty strong {
    color: var(--mu-ink);
}

.muHomeCta {
    min-height: 190px;
    padding: 34px 40px;
    border-radius: 24px;
    background: linear-gradient(115deg, #0b4f83, #166fd0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    color: #fff;
    box-shadow: 0 20px 48px rgba(11, 79, 131, .14);
}

.muHomeCta h2 {
    color: #fff;
    font-size: clamp(28px, 2.7vw, 38px);
}

.muHomeCta p {
    margin: 10px 0 0;
    color: rgba(255,255,255,.76);
    font-size: 13px;
}

.muHomeCta__actions {
    display: flex;
    gap: 9px;
    flex: 0 0 auto;
}

.muButton--light {
    background: #fff;
    color: #07517d;
}

.muButton--outlineLight {
    border-color: rgba(255,255,255,.42);
    color: #fff;
    background: transparent;
}

@media (max-width: 900px) {
    .site-header__cta {
        display: none !important;
    }

    .muHomeV2 {
        width: calc(100% - (var(--mu-mobile-gutter) * 2));
        padding: 14px 0 28px;
        gap: 12px;
    }

    .muHomeHero {
        min-height: 360px;
        padding: 22px 18px 18px;
        align-items: flex-end;
        border-radius: 20px;
        background:
            linear-gradient(180deg, rgba(2, 21, 39, .28) 0%, rgba(2, 21, 39, .75) 54%, rgba(2, 21, 39, .97) 100%),
            url("/images/mu/hero-massage.png") 67% center / cover no-repeat;
        box-shadow: none;
    }

    .muHomeHero__content {
        width: 100%;
    }

    .muEyebrow--hero {
        padding: 7px 9px;
        font-size: 8px;
    }

    .muHomeHero h1 {
        max-width: 290px;
        margin: 13px 0 10px;
        font-size: clamp(32px, 10vw, 42px);
        line-height: .95;
    }

    .muHomeHero p {
        max-width: 320px;
        font-size: 11px;
        line-height: 1.45;
    }

    .muHomeHero__actions {
        margin-top: 15px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .muButton {
        min-height: 38px;
        padding: 0 12px;
        border-radius: 11px;
        font-size: 10px;
    }

    .muHomeStats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-radius: 16px;
        box-shadow: none;
    }

    .muHomeStats article {
        min-height: 78px;
        padding: 13px 10px;
    }

    .muHomeStats article + article::before {
        top: 13px;
        bottom: 13px;
    }

    .muHomeStats span {
        font-size: 7px;
    }

    .muHomeStats strong {
        margin-top: 4px;
        font-size: 20px;
    }

    .muHomeStats p {
        margin-top: 4px;
        font-size: 8px;
        line-height: 1.25;
    }

    .muHomeSection,
    .muHomeBenefits {
        padding: 20px 16px;
        border-radius: 18px;
        box-shadow: none;
    }

    .muHomeSection__head {
        margin-bottom: 16px;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .muHomeSection__head h2,
    .muHomeBenefits__head h2,
    .muHomeCta h2 {
        margin-top: 7px;
        font-size: 24px;
        line-height: .98;
    }

    .muHomeSection__side p,
    .muHomeSection__head > p,
    .muHomeBenefits__head p {
        font-size: 10px;
        line-height: 1.45;
    }

    .muTextLink {
        margin-top: 6px;
        font-size: 9px;
    }

    .muEyebrow {
        font-size: 8px;
    }

    .muHomeServices {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .muServiceCard {
        min-height: 0;
        padding: 14px;
        border-radius: 15px;
        box-shadow: none;
    }

    .muServiceCard__icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .muServiceCard__icon img {
        width: 24px;
        height: 24px;
    }

    .muServiceCard__category {
        padding: 5px 7px;
        font-size: 7px;
    }

    .muServiceCard__content {
        margin-top: 11px;
    }

    .muServiceCard__content h3 {
        font-size: 17px;
    }

    .muServiceCard__content p {
        margin-top: 6px;
        font-size: 10px;
        line-height: 1.4;
    }

    .muServiceCard__footer {
        padding-top: 12px;
        align-items: center;
        gap: 10px;
    }

    .muServiceCard__meta {
        gap: 14px;
    }

    .muServiceCard__meta small {
        font-size: 7px;
    }

    .muServiceCard__meta strong {
        font-size: 13px;
    }

    .muServiceCard__action {
        min-height: 34px;
        padding: 0 10px;
        border-radius: 10px;
        font-size: 9px;
    }

    .muHomeBenefits__grid {
        margin-top: 17px;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .muHomeBenefits__grid article {
        min-height: 0;
        padding: 12px;
        grid-template-columns: 34px 1fr;
        gap: 10px;
        border-radius: 13px;
    }

    .muHomeBenefits__grid article > span {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        font-size: 8px;
    }

    .muHomeBenefits__grid h3 {
        font-size: 12px;
    }

    .muHomeBenefits__grid p {
        margin-top: 4px;
        font-size: 9px;
        line-height: 1.35;
    }

    .muWorkflow {
        grid-template-columns: 1fr 1fr;
        border-radius: 14px;
    }

    .muWorkflow li {
        min-height: 96px;
        padding: 12px;
        gap: 9px;
    }

    .muWorkflow li + li {
        border-left: 0;
    }

    .muWorkflow li:nth-child(even) {
        border-left: 1px solid var(--mu-border);
    }

    .muWorkflow li:nth-child(n+3) {
        border-top: 1px solid var(--mu-border);
    }

    .muWorkflow li > span {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        border-radius: 8px;
        font-size: 8px;
    }

    .muWorkflow h3 {
        font-size: 10px;
    }

    .muWorkflow p {
        margin-top: 4px;
        font-size: 8px;
        line-height: 1.3;
    }

    .muTestimonials {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .muTestimonials article {
        padding: 14px;
        border-radius: 13px;
    }

    .muTestimonials article > p {
        min-height: 0;
        margin: 8px 0 10px;
        font-size: 10px;
    }

    .muHomeCta {
        min-height: 0;
        padding: 20px 16px;
        border-radius: 18px;
        display: grid;
        gap: 14px;
        box-shadow: none;
    }

    .muHomeCta p {
        margin-top: 7px;
        font-size: 10px;
        line-height: 1.4;
    }

    .muHomeCta__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 390px) {
    .muHomeHero {
        min-height: 342px;
    }

    .muHomeHero h1 {
        font-size: 31px;
    }

    .muHomeStats p {
        display: none;
    }

    .muHomeStats article {
        min-height: 66px;
    }

    .muHomeSection,
    .muHomeBenefits {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* =========================================================
   UI V2 — PHASE 3B.1 REFINEMENT
   Header mobile centered, Home proportions and footer.
   ========================================================= */

@media (min-width: 901px) {
    .muHomeV2 {
        padding-top: 32px;
    }

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

    .muServiceCard {
        min-height: 292px;
    }

    .muServiceCard__footer {
        gap: 12px;
    }

    .muServiceCard__meta {
        gap: 14px;
    }
}

.muFooterMobile {
    display: none;
}

@media (max-width: 900px) {
    /* Header = app brand bar. The bottom navigation owns the actions. */
    .site-header__inner,
    .site-header__inner--premium {
        position: relative;
        justify-content: center;
    }

    .site-header__brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        max-width: calc(100% - 28px);
        margin: 0;
        gap: 9px;
        justify-content: center;
    }

    .site-header__logoImg {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .site-header__title {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        font-size: 14px;
        font-weight: 900;
        letter-spacing: -.025em;
    }

    .site-header__actions {
        display: none !important;
    }

    /* Slightly larger secondary copy: compact, but not tiny. */
    .muHomeHero p {
        font-size: 11.5px;
        line-height: 1.48;
    }

    .muHomeStats p {
        font-size: 8.5px;
    }

    .muHomeSection__side p,
    .muHomeSection__head > p,
    .muHomeBenefits__head p {
        font-size: 10.5px;
    }

    .muServiceCard__content p {
        font-size: 10.5px;
        line-height: 1.45;
    }

    .muHomeBenefits__grid p {
        font-size: 9.5px;
    }

    .muWorkflow p {
        font-size: 8.5px;
    }

    /* Old desktop footer is not compressed into an awkward mobile stack. */
    .siteFooter__desktop {
        display: none !important;
    }

    .siteFooter {
        width: calc(100% - (var(--mu-mobile-gutter) * 2));
        margin: 12px auto 14px;
        padding: 0;
        background: transparent;
        border: 0;
    }

    .muFooterMobile {
        display: block;
        padding: 17px 16px 15px;
        border: 1px solid var(--mu-border);
        border-radius: 18px;
        background: #fff;
        box-shadow: none;
    }

    .muFooterMobile__brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .muFooterMobile__brand img {
        width: 36px;
        height: 36px;
        object-fit: contain;
        flex: 0 0 36px;
    }

    .muFooterMobile__brand div {
        min-width: 0;
        display: grid;
        gap: 2px;
    }

    .muFooterMobile__brand strong {
        color: var(--mu-ink);
        font-size: 14px;
        font-weight: 900;
        line-height: 1.1;
    }

    .muFooterMobile__brand span {
        color: #7b8794;
        font-size: 8.5px;
        font-weight: 700;
    }

    .muFooterMobile__copy {
        margin: 11px 0 12px;
        max-width: 290px;
        color: #647184;
        font-size: 9.5px;
        line-height: 1.45;
    }

    .muFooterMobile__links {
        display: flex;
        flex-wrap: wrap;
        gap: 7px 14px;
        padding: 11px 0;
        border-top: 1px solid #edf0f2;
        border-bottom: 1px solid #edf0f2;
    }

    .muFooterMobile__links a {
        color: #0b5f8e;
        text-decoration: none;
        font-size: 9px;
        font-weight: 800;
    }

    .muFooterMobile__meta {
        padding-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 5px 12px;
        color: #89939f;
        font-size: 8px;
        line-height: 1.35;
    }

    /* Keep the page ending comfortably above the app navigation. */
    .muHomeV2 {
        padding-bottom: 12px;
    }
}

@media (max-width: 390px) {
    .site-header__logoImg {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .site-header__title {
        font-size: 13.5px;
    }

    .muFooterMobile {
        padding-left: 14px;
        padding-right: 14px;
    }
}
