/*
 * Homepage (template-homepage.php). Mobile-first; everything is scoped to .mm-home so theme rules
 * (navy headings, uppercase buttons, Bootstrap inputs) don't leak in.
 */

.mm-home {
    --mm-dark: #1b1b1b;
    --mm-accent: #3ec7c2;
    --mm-accent-dark: #2a9d99;
    --mm-accent-soft: rgba(62, 199, 194, .12);
    --mm-text: #4a4a4a;
    --mm-muted: #6d6d6d;
    --mm-line: #e6e6e6;
    --mm-soft: #f5f8f8;
    --mm-radius: 16px;

    color: var(--mm-text);
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
    background: #fff;
    overflow-x: hidden;
}

.mm-home *,
.mm-home *::before,
.mm-home *::after {
    box-sizing: border-box;
}

.mm-home h1,
.mm-home h2,
.mm-home h3 {
    margin: 0;
    color: var(--mm-dark);
    font-family: inherit;
    letter-spacing: -.01em;
    text-align: inherit;
    text-transform: none;
}

.mm-home p {
    margin: 0;
}

.mm-home ul,
.mm-home ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmh-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.mmh-wrap--narrow {
    max-width: 760px;
}

.mmh-center {
    text-align: center;
}

/* ---------- Buttons ---------- */

.mm-home .mmh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .2px;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.mm-home .mmh-btn:active {
    transform: translateY(1px);
}

.mm-home .mmh-btn--primary {
    background: var(--mm-accent);
    border-color: var(--mm-accent);
    color: var(--mm-dark);
}

.mm-home .mmh-btn--primary:hover,
.mm-home .mmh-btn--primary:focus-visible {
    background: var(--mm-accent-dark);
    border-color: var(--mm-accent-dark);
    color: #fff;
}

.mm-home .mmh-btn--dark {
    background: var(--mm-dark);
    border-color: var(--mm-dark);
    color: #fff;
}

.mm-home .mmh-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.mm-home .mmh-btn--ghost:hover,
.mm-home .mmh-btn--ghost:focus-visible {
    border-color: #fff;
}

.mm-home .mmh-btn--block {
    display: flex;
    width: 100%;
}

.mm-home .mmh-btn:focus-visible {
    outline: 3px solid rgba(62, 199, 194, .45);
    outline-offset: 2px;
}

/* ---------- Hero ---------- */

.mmh-hero {
    position: relative;
    padding: 48px 0 56px;
    background: var(--mm-dark);
    color: rgba(255, 255, 255, .82);
}

.mmh-hero__grid {
    display: grid;
    gap: 40px;
}

.mmh-eyebrow {
    margin-bottom: 12px !important;
    color: var(--mm-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mm-home .mmh-hero__title {
    color: #fff;
    font-size: clamp(32px, 8.4vw, 54px);
    font-weight: 800;
    line-height: 1.08;
}

.mmh-hero__title span {
    color: var(--mm-accent);
}

.mmh-hero__lead {
    max-width: 520px;
    margin-top: 16px !important;
    font-size: 17px;
}

.mmh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.mmh-hero__actions .mmh-btn {
    flex: 1 1 200px;
}

.mmh-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 22px !important;
    font-size: 14px;
}

.mmh-hero__trust i {
    margin-right: 4px;
    color: var(--mm-accent);
}

/* Icon CSS loads in the background: reserve each icon's box so text doesn't reflow when it arrives */
.mm-home i:is(.fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands) {
    display: inline-block;
    width: 1.25em;
    text-align: center;
}

/* Paste a group link */
.mmh-link {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--mm-radius);
    background: rgba(255, 255, 255, .05);
}

.mmh-link[hidden] {
    display: none;
}

.mmh-link label {
    display: block;
    margin: 0 0 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.mmh-link__row {
    display: flex;
    gap: 8px;
}

.mm-home .mmh-link input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: var(--mm-dark);
    font-family: inherit;
    font-size: 16px;
    box-shadow: none;
}

.mm-home .mmh-link .mmh-btn {
    min-height: 48px;
    padding: 0 18px;
}

.mmh-link__error {
    margin-top: 8px !important;
    color: #ffb4b4;
    font-size: 13px;
}

/* Phone mockup */
.mmh-hero__visual {
    display: flex;
    justify-content: center;
}

.mmh-phone {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border-radius: 38px;
    background: #2b2b2b;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 2px #3a3a3a;
}

.mmh-phone__screen {
    display: grid;
    gap: 10px;
    padding: 18px 14px;
    border-radius: 28px;
    background: #f4f6f6;
    color: var(--mm-dark);
    font-size: 13px;
}

.mmh-mock__head {
    padding: 12px;
    border-radius: 14px;
    background: var(--mm-dark);
    color: #fff;
}

.mmh-mock__title {
    font-size: 15px;
    font-weight: 800;
}

.mmh-mock__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.mmh-mock__meta span {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 11px;
}

.mmh-mock__status {
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--mm-accent-soft);
    color: var(--mm-accent-dark);
    font-weight: 700;
}

.mmh-mock__match,
.mmh-mock__ideas {
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.mmh-mock__label {
    margin-bottom: 8px;
    color: var(--mm-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

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

.mmh-mock__person strong {
    display: block;
    font-size: 15px;
}

.mmh-mock__person small {
    color: var(--mm-muted);
}

.mmh-mock__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mm-accent);
    color: var(--mm-dark);
    font-weight: 800;
}

.mmh-mock__wishes {
    margin-top: 10px !important;
    border-top: 1px solid var(--mm-line);
}

.mmh-mock__wishes li {
    padding: 7px 0 7px 18px;
    border-bottom: 1px solid var(--mm-line);
    position: relative;
}

.mmh-mock__wishes li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--mm-accent);
}

.mmh-mock__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mmh-mock__chips span {
    padding: 4px 9px;
    border: 1px solid var(--mm-line);
    border-radius: 999px;
    font-size: 11px;
}

/* ---------- Stats ---------- */

.mmh-stats {
    padding: 22px 0;
    border-bottom: 1px solid var(--mm-line);
    background: #fff;
}

.mmh-stats__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}

.mmh-stats strong {
    display: block;
    color: var(--mm-dark);
    font-size: clamp(20px, 5.5vw, 30px);
    font-weight: 800;
    line-height: 1.1;
}

.mmh-stats div > span {
    color: var(--mm-muted);
    font-size: 13px;
}

.mmh-stats [data-count] {
    font-variant-numeric: tabular-nums; /* digits don't jump while counting */
}

/* ---------- Sections ---------- */

.mmh-section {
    padding: 56px 0;
}

.mmh-section--soft {
    background: var(--mm-soft);
}

.mm-home .mmh-h2 {
    font-size: clamp(26px, 6vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.mmh-sub {
    max-width: 560px;
    margin: 10px auto 0 !important;
    color: var(--mm-muted);
    text-align: center;
}

/* Steps */
.mmh-steps {
    display: grid;
    gap: 14px;
    margin: 32px 0 !important;
    counter-reset: none;
}

.mmh-steps li {
    position: relative;
    padding: 20px 20px 20px 72px;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    background: #fff;
}

.mmh-steps__num {
    position: absolute;
    left: 20px;
    top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mm-dark);
    color: #fff;
    font-weight: 800;
}

.mm-home .mmh-steps h3 {
    font-size: 18px;
    font-weight: 800;
}

.mmh-steps p {
    margin-top: 4px !important;
    color: var(--mm-muted);
}

/* Features */
.mmh-features {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

.mmh-feature {
    padding: 20px;
    border-radius: var(--mm-radius);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.mmh-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--mm-accent-soft);
    color: var(--mm-accent-dark);
    font-size: 18px;
}

.mm-home .mmh-feature h3 {
    font-size: 17px;
    font-weight: 800;
}

.mmh-feature p {
    margin-top: 4px !important;
    color: var(--mm-muted);
    font-size: 15px;
}

/* Plans */
.mmh-plans {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.mmh-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 22px 22px;
    border: 1px solid var(--mm-line);
    border-radius: 20px;
    background: #fff;
}

.mmh-plan--free {
    border: 2px solid var(--mm-accent);
}

.mmh-plan--pro {
    background: var(--mm-dark);
    border-color: var(--mm-dark);
    color: rgba(255, 255, 255, .82);
}

.mmh-plan__badge {
    position: absolute;
    top: -13px;
    left: 22px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--mm-accent);
    color: var(--mm-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mmh-plan__badge--pro {
    background: #fff;
}

.mmh-plan__name {
    color: var(--mm-dark);
    font-size: 20px;
    font-weight: 800;
}

.mmh-plan--pro .mmh-plan__name {
    color: #fff;
}

.mmh-plan__price {
    margin: 6px 0 16px;
    color: var(--mm-dark);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
}

.mmh-plan--pro .mmh-plan__price {
    color: var(--mm-accent);
}

.mmh-plan__price small {
    display: block;
    color: var(--mm-muted);
    font-size: 14px;
    font-weight: 600;
}

.mmh-plan--pro .mmh-plan__price small {
    color: rgba(255, 255, 255, .6);
}

.mmh-plan__note {
    margin-bottom: 8px !important;
    font-weight: 700;
}

.mmh-plan__list {
    flex: 1 1 auto;
    margin-bottom: 20px !important;
}

.mmh-plan__list li {
    position: relative;
    padding: 7px 0 7px 28px;
}

.mmh-plan__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--mm-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a9d99' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat center / 11px;
}

.mmh-plan--pro .mmh-plan__list li::before {
    background-color: rgba(62, 199, 194, .2);
}

.mmh-plan__how {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
}

/* FAQ */
.mmh-faq {
    margin-top: 28px;
}

.mmh-faq details {
    border-bottom: 1px solid var(--mm-line);
}

.mmh-faq summary {
    position: relative;
    padding: 18px 40px 18px 0;
    color: var(--mm-dark);
    font-size: 17px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.mmh-faq summary::-webkit-details-marker {
    display: none;
}

.mmh-faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mm-accent-dark);
    font-size: 24px;
    font-weight: 400;
}

.mmh-faq details[open] summary::after {
    content: "\2212";
}

.mmh-faq details p {
    padding: 0 0 18px;
    color: var(--mm-muted);
}

/* Final CTA */
.mmh-final {
    padding: 56px 0 64px;
    background: var(--mm-dark);
    color: rgba(255, 255, 255, .8);
}

.mm-home .mmh-final h2 {
    color: #fff;
    font-size: clamp(26px, 6vw, 36px);
    font-weight: 800;
}

.mmh-final p {
    margin: 8px 0 24px !important;
}

/* Sticky phone CTA (shown by Theme.initHome after the hero) */
.mmh-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
    transform: translateY(110%);
    transition: transform .25s ease;
}

.mmh-sticky.is-visible {
    transform: none;
}

/* Chat bubble (Chaty plugin) moves up while the bar is showing */
.chaty,
[id^="chaty-widget"] {
    transition: transform .25s ease;
}

@media (max-width: 899px) {
    .mm-sticky-on .chaty,
    .mm-sticky-on [id^="chaty-widget"] {
        transform: translateY(-72px);
    }
}

/* ---------- Motion ---------- */

/* Hero: teal glows drifting over the dark gradient */
.mmh-hero {
    overflow: hidden;
    isolation: isolate;
    background: var(--mm-dark);
}

.mmh-hero::before,
.mmh-hero::after,
.mmh-hero__glow {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(10px);
    will-change: transform;
}

.mmh-hero::before {
    top: -30%;
    right: -20%;
    width: 75vmax;
    height: 75vmax;
    background: radial-gradient(circle, rgba(62, 199, 194, .32) 0%, rgba(62, 199, 194, 0) 62%);
    animation: mmhDriftA 22s ease-in-out infinite alternate;
}

.mmh-hero::after {
    bottom: -45%;
    left: -25%;
    width: 65vmax;
    height: 65vmax;
    background: radial-gradient(circle, rgba(42, 157, 153, .28) 0%, rgba(42, 157, 153, 0) 60%);
    animation: mmhDriftB 26s ease-in-out infinite alternate;
}

.mmh-hero__glow--3 {
    top: 20%;
    left: 35%;
    width: 40vmax;
    height: 40vmax;
    background: radial-gradient(circle, rgba(140, 230, 226, .16) 0%, rgba(140, 230, 226, 0) 60%);
    animation: mmhDriftC 18s ease-in-out infinite alternate;
}

@keyframes mmhDriftA {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-18vw, 12vh) scale(1.12); }
    100% { transform: translate(-6vw, 26vh) scale(.95); }
}

@keyframes mmhDriftB {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(22vw, -14vh) scale(1.1); }
    100% { transform: translate(8vw, -4vh) scale(1.18); }
}

@keyframes mmhDriftC {
    0%   { transform: translate(0, 0) scale(.9); }
    50%  { transform: translate(-20vw, -10vh) scale(1.15); }
    100% { transform: translate(14vw, 8vh) scale(1); }
}

/* Phone mockup floats; wishes and gift chips pop in */
.mmh-phone {
    animation: mmhFloat 6s ease-in-out infinite;
}

@keyframes mmhFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.mmh-mock__status,
.mmh-mock__wishes li,
.mmh-mock__chips span {
    animation: mmhPop .55s cubic-bezier(.2, .9, .3, 1.3) both;
}

.mmh-mock__status              { animation-delay: .5s; }
.mmh-mock__wishes li:nth-child(1) { animation-delay: .9s; }
.mmh-mock__wishes li:nth-child(2) { animation-delay: 1.05s; }
.mmh-mock__wishes li:nth-child(3) { animation-delay: 1.2s; }
.mmh-mock__chips span:nth-child(1) { animation-delay: 1.5s; }
.mmh-mock__chips span:nth-child(2) { animation-delay: 1.62s; }
.mmh-mock__chips span:nth-child(3) { animation-delay: 1.74s; }

@keyframes mmhPop {
    from { opacity: 0; transform: translateY(8px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

/* Hero copy rises in on load */
.mmh-hero__copy > * {
    animation: mmhRise .7s cubic-bezier(.2, .7, .2, 1) both;
}

.mmh-hero__copy > *:nth-child(2) { animation-delay: .08s; }
.mmh-hero__copy > *:nth-child(3) { animation-delay: .16s; }
.mmh-hero__copy > *:nth-child(4) { animation-delay: .24s; }
.mmh-hero__copy > *:nth-child(5),
.mmh-hero__copy > *:nth-child(6) { animation-delay: .32s; }

@keyframes mmhRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

/* Soft shine across the primary hero button every few seconds */
.mmh-hero .mmh-btn--primary {
    position: relative;
    overflow: hidden;
}

.mmh-hero .mmh-btn--primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    animation: mmhShine 5s ease-in-out 2s infinite;
}

@keyframes mmhShine {
    0%, 70% { left: -60%; }
    100%    { left: 130%; }
}

/* Scroll reveal (html.mm-anim is set inline only when the reveal script can run) */
.mm-anim .mm-home [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0s);
}

.mm-anim .mm-home [data-reveal].is-in,
.mm-reveal-all .mm-home [data-reveal] {
    opacity: 1;
    transform: none;
}

/* Cards lift slightly on hover */
.mmh-feature,
.mmh-steps li,
.mmh-plan {
    transition: transform .25s ease, box-shadow .25s ease, opacity .7s ease;
}

@media (hover: hover) {
    .mmh-feature:hover,
    .mmh-steps li:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    }

    .mmh-feature:hover .mmh-feature__icon {
        animation: mmhWiggle .5s ease;
    }
}

@keyframes mmhWiggle {
    0%, 100% { transform: rotate(0); }
    30%      { transform: rotate(-10deg) scale(1.08); }
    60%      { transform: rotate(8deg) scale(1.08); }
}

/* ---------- Larger screens ---------- */

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

    .mmh-hero__actions .mmh-btn {
        flex: 0 0 auto;
    }
}

@media (min-width: 900px) {
    .mmh-hero {
        padding: 80px 0 88px;
    }

    .mmh-hero__grid {
        grid-template-columns: 1.15fr .85fr;
        align-items: center;
        gap: 56px;
    }

    .mmh-section {
        padding: 80px 0;
    }

    .mmh-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .mmh-steps li {
        padding: 24px;
    }

    .mmh-steps__num {
        position: static;
        margin-bottom: 14px;
    }

    .mmh-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .mmh-plans {
        grid-template-columns: 1fr 1fr;
        max-width: 880px;
        margin-left: auto;
        margin-right: auto;
    }

    .mmh-sticky {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mm-home *,
    .mm-home *::before,
    .mm-home *::after,
    .mmh-sticky {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Landing pages (template-landing.php) ---------- */

.mml-hero {
    padding-bottom: 64px;
}

.mml-crumbs {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
}

.mml-crumbs a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.mml-crumbs a:hover {
    color: #3ec7c2;
}

.mml-hero__copy {
    max-width: 760px;
}

.mm-home .mml-left {
    text-align: left;
}

.mml-prose p {
    margin: 0 0 14px !important;
    color: #3a3a3a;
    font-size: 17px;
    line-height: 1.7;
}

.mml-prose h2 {
    margin-bottom: 16px !important;
}

.mml-updated {
    color: #8a8a8a !important;
    font-size: 13px !important;
}

.mml-gap {
    margin-top: 28px;
}

/* Gift guide */
.mm-home h3.mml-group {
    margin: 36px 0 12px;
    font-size: 20px;
    font-weight: 800;
}

.mml-ideas {
    display: grid;
    gap: 10px;
}

.mml-idea {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--mm-line);
    border-radius: 14px;
    background: #fff;
}

.mml-idea strong {
    color: var(--mm-dark);
    font-size: 16px;
}

.mml-idea__shops {
    display: flex;
    gap: 8px;
}

.mm-home .mml-shop {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.mm-home .mml-shop--lazada {
    background: #0f146d;
}

.mm-home .mml-shop--shopee {
    background: #ee4d2d;
}

.mm-home .mml-shop:hover {
    opacity: .88;
    color: #fff;
}

.mml-tip {
    display: grid;
    gap: 12px;
    margin-top: 36px;
    padding: 20px;
    border-radius: 16px;
    background: var(--mm-dark);
    color: rgba(255, 255, 255, .85);
}

.mml-tip > i {
    color: #3ec7c2;
    font-size: 22px;
}

.mml-tip strong {
    color: #fff;
}

/* Related pages */
.mml-related {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.mm-home .mml-related__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border: 1px solid var(--mm-line);
    border-radius: 16px;
    background: #fff;
    color: var(--mm-dark);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mm-home .mml-related__card .mmh-eyebrow {
    margin: 0 !important;
    font-size: 11px;
}

.mm-home .mml-related__card strong {
    font-size: 17px;
    line-height: 1.3;
}

.mml-related__go {
    margin-top: auto;
    color: #2a9d99;
    font-size: 14px;
    font-weight: 700;
}

@media (hover: hover) {
    .mm-home .mml-related__card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    }
}

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

    .mml-tip {
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }
}

@media (min-width: 900px) {
    .mml-ideas {
        grid-template-columns: repeat(3, 1fr);
    }

    .mml-related {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Themes list (type "list") */
.mm-home ul.mml-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mml-chips li {
    padding: 9px 14px;
    border: 1px solid var(--mm-line);
    border-radius: 999px;
    background: #fff;
    color: var(--mm-dark);
    font-size: 15px;
    font-weight: 600;
}

/* Legal pages (type "legal") */
.mml-legal-hero {
    padding: 40px 0 44px;
}

.mm-legal .mmh-hero__title {
    font-size: clamp(30px, 7vw, 44px);
}

.mm-legal .mml-updated {
    margin-top: 12px !important;
    color: rgba(255, 255, 255, .6) !important;
}

.mml-toc {
    margin: 0 0 28px;
    padding: 16px 18px;
    border: 1px solid var(--mm-line);
    border-radius: 14px;
    background: var(--mm-soft);
}

.mml-toc strong {
    display: block;
    margin-bottom: 6px;
    color: var(--mm-dark);
}

.mm-home .mml-toc ol {
    padding-left: 20px;
    list-style: decimal;
}

.mml-toc li {
    margin: 3px 0;
    font-size: 15px;
}

.mml-toc a,
.mml-prose a {
    color: #1f8580;
}

.mm-legal .mml-prose h2 {
    margin: 32px 0 10px !important;
    font-size: 21px;
    font-weight: 800;
    text-align: left;
    scroll-margin-top: 80px;
}

.mm-home .mml-prose ul {
    margin: 0 0 14px;
    padding-left: 20px;
    list-style: disc;
}

.mml-prose li {
    margin: 0 0 8px;
    color: #3a3a3a;
    font-size: 16px;
    line-height: 1.65;
}

.mml-legal-contact {
    margin-top: 32px !important;
    padding-top: 16px;
    border-top: 1px solid var(--mm-line);
}

/* Weekly Drops spotlight (homepage) */
.mmh-drops {
    background: linear-gradient(180deg, #fffaf0, #fff);
}

.mmh-drops__grid {
    display: grid;
    gap: 28px;
}

.mm-home .mmh-drops .mmh-h2 span {
    color: #b8952a;
}

.mmh-drops__lead {
    margin: 12px 0 16px !important;
    color: var(--mm-muted);
    font-size: 17px;
}

.mm-home ol.mmh-drops__steps {
    padding-left: 22px;
    list-style: decimal;
}

.mmh-drops__steps li {
    margin: 0 0 8px;
    color: #3a3a3a;
}

.mmh-drops__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: 20px;
}

.mm-home .mmh-drops__link {
    color: #8a6d12;
    font-weight: 700;
    text-decoration: none;
}

.mm-home ol.mmh-drops__line {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    background: var(--mm-dark);
}

.mmh-drops__line li {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
}

.mmh-drops__line li span {
    display: block;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 700;
}

.mmh-drops__line li.is-done {
    color: rgba(255, 255, 255, .7);
}

.mmh-drops__line li.is-now {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, .16);
}

.mmh-drops__line li.is-final {
    border-style: dashed;
    color: #3ec7c2;
}

@media (min-width: 900px) {
    .mmh-drops__grid {
        grid-template-columns: 1.2fr .8fr;
        align-items: center;
        gap: 56px;
    }
}

/* ---------- Photos & looping videos (ACF "Homepage photos & videos"; empty slots render nothing) ---------- */

/* Background media for the hero and the final band: under the teal glows, behind a dark overlay */
.mmh-final {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.mmh-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: var(--mm-dark);
}

.mmh-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(27, 27, 27, .94) 0%, rgba(27, 27, 27, .82) 45%, rgba(27, 27, 27, .55) 100%),
        linear-gradient(0deg, rgba(27, 27, 27, .7), rgba(27, 27, 27, 0) 40%);
}

.mmh-final .mmh-bg::after {
    background: radial-gradient(ellipse at center, rgba(27, 27, 27, .72) 0%, rgba(27, 27, 27, .88) 75%);
}

.mm-home .mmh-bg__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 70% center;
    animation: mmhDrift 28s ease-in-out infinite alternate;
}

/* The video stays invisible until it is actually playing, so the photo never flashes black */
.mmh-bg__video {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.mmh-bg__video.is-playing {
    opacity: 1;
}

@keyframes mmhDrift {
    from { transform: scale(1.08) translate3d(1.5%, 0, 0); }
    to   { transform: scale(1) translate3d(0, 0, 0); }
}

/* On phones the overlay is even, since text spans the full width */
@media (max-width: 899px) {
    .mmh-hero .mmh-bg::after {
        background: linear-gradient(180deg, rgba(27, 27, 27, .9), rgba(27, 27, 27, .8) 60%, rgba(27, 27, 27, .92));
    }
}

/* Who it's for: three photo cards */
.mmh-section--tight {
    padding-top: 8px;
}

.mmh-aud {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.mm-home .mmh-aud__card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--mm-radius);
    aspect-ratio: 4 / 3;
    background: var(--mm-soft);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.mm-home .mmh-aud__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.mmh-aud__card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 18px 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    line-height: 1.4;
}

.mmh-aud__card figcaption strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 18px;
}

/* Weekly Drops photo above the timeline */
.mmh-drops__side {
    display: grid;
    gap: 14px;
}

.mm-home .mmh-drops__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(138, 109, 18, .16);
}

/* Scroll-in: photos unveil from a soft zoom (uses the existing [data-reveal] observer) */
.mm-anim .mm-home [data-reveal] .mmh-aud__img,
.mm-anim .mm-home [data-reveal] .mmh-drops__img {
    transform: scale(1.12);
    transition: transform 1.4s cubic-bezier(.2, .7, .2, 1);
}

.mm-anim .mm-home [data-reveal].is-in .mmh-aud__img,
.mm-anim .mm-home [data-reveal].is-in .mmh-drops__img,
.mm-reveal-all .mm-home [data-reveal] .mmh-aud__img,
.mm-reveal-all .mm-home [data-reveal] .mmh-drops__img {
    transform: none;
}

@media (hover: hover) {
    .mm-home .mmh-aud__card:hover .mmh-aud__img {
        transform: scale(1.05);
        transition-duration: .8s;
    }
}

@media (min-width: 640px) {
    .mmh-aud {
        grid-template-columns: repeat(3, 1fr);
    }

    .mm-home .mmh-aud__card {
        aspect-ratio: 4 / 5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mm-home .mmh-bg__media,
    .mm-home .mmh-aud__img,
    .mm-home .mmh-drops__img {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }

    .mmh-bg__video {
        display: none;
    }
}
