:root {
    --tfm-navy: #07111f;
    --tfm-ink: #142033;
    --tfm-muted: #627085;
    --tfm-line: rgba(20, 32, 51, 0.12);
    --tfm-soft: #f7f4f1;
    --tfm-soft-2: #fff9f5;
    --tfm-rose: #c98f7a;
    --tfm-rose-dark: #9f6554;
    --tfm-gold: #d6ad72;
    --tfm-white: #ffffff;
    --tfm-shadow: 0 24px 70px rgba(11, 18, 32, 0.12);
    --tfm-radius-xl: 32px;
    --tfm-radius-lg: 22px;
    --tfm-radius-md: 16px;
}

.tfmms-medspa-page,
.tfmms-medspa-page * {
    box-sizing: border-box;
}

.tfmms-medspa-page {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--tfm-ink);
    background: #fff;
    overflow: hidden;
}
/* Plugin namespace + theme guardrails */
.tfmms-medspa-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tfmms-medspa-page .tfmms-container {
    width: min(1180px, calc(100% - 40px)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.tfmms-medspa-page .tfmms-hero-grid {
    margin-left: auto !important;
    margin-right: auto !important;
}


.tfmms-medspa-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

.tfmms-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.tfmms-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tfm-rose-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tfmms-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tfm-rose), var(--tfm-gold));
    box-shadow: 0 0 0 6px rgba(201, 143, 122, 0.14);
}

.tfmms-medspa-page h1,
.tfmms-medspa-page h2,
.tfmms-medspa-page h3,
.tfmms-medspa-page p {
    margin-top: 0;
}

.tfmms-medspa-page h1 {
    color: var(--tfm-navy);
    font-size: clamp(44px, 6vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin-bottom: 26px;
}

.tfmms-medspa-page h2 {
    color: var(--tfm-navy);
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    margin-bottom: 18px;
}

.tfmms-medspa-page h3 {
    color: var(--tfm-navy);
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 10px;
}

.tfmms-medspa-page p,
.tfmms-medspa-page li {
    color: var(--tfm-muted);
    font-size: 16px;
    line-height: 1.7;
}

.tfmms-hero {
    position: relative;
    padding: 98px 0 78px;
    background:
        radial-gradient(circle at 14% 16%, rgba(201, 143, 122, 0.22), transparent 34%),
        radial-gradient(circle at 76% 20%, rgba(214, 173, 114, 0.22), transparent 30%),
        linear-gradient(135deg, #fffaf6 0%, #f8f1ed 48%, #eef3f7 100%);
}

.tfmms-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -120px -8%;
    height: 210px;
    background: #fff;
    transform: rotate(-3deg);
    transform-origin: center;
}

.tfmms-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 46px;
    align-items: center;
}

.tfmms-hero-copy p {
    max-width: 620px;
    font-size: 20px;
    color: #48566b;
    margin-bottom: 30px;
}

.tfmms-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.tfmms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 16px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tfmms-btn:hover {
    transform: translateY(-2px);
}

.tfmms-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--tfm-navy), #192944);
    box-shadow: 0 16px 34px rgba(7, 17, 31, 0.22);
}

.tfmms-btn-secondary {
    color: var(--tfm-navy) !important;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(20, 32, 51, 0.12);
}

.tfmms-btn-light {
    color: var(--tfm-navy) !important;
    background: #fff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}

.tfmms-hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
    max-width: 720px;
}

.tfmms-hero-proof div {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(20, 32, 51, 0.1);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(14px);
}

.tfmms-hero-proof strong {
    display: block;
    color: var(--tfm-navy);
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 7px;
}

.tfmms-hero-proof span {
    display: block;
    color: var(--tfm-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tfmms-hero-visual {
    position: relative;
    padding: 22px;
    border-radius: 42px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--tfm-shadow);
    border: 1px solid rgba(255, 255, 255, 0.88);
}

.tfmms-hero-visual::before,
.tfmms-hero-visual::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    z-index: -1;
}

.tfmms-hero-visual::before {
    width: 170px;
    height: 170px;
    background: rgba(201, 143, 122, 0.2);
    top: -20px;
    right: -26px;
}

.tfmms-hero-visual::after {
    width: 120px;
    height: 120px;
    background: rgba(214, 173, 114, 0.18);
    bottom: -28px;
    left: -24px;
}

.tfmms-intro,
.tfmms-cases,
.tfmms-case-details,
.tfmms-treatments,
.tfmms-final-cta {
    padding: 88px 0;
}

.tfmms-centered {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.tfmms-centered p {
    font-size: 18px;
}

.tfmms-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 44px;
}

.tfmms-feature-card {
    background: #fff;
    border: 1px solid var(--tfm-line);
    border-radius: var(--tfm-radius-lg);
    padding: 28px;
    box-shadow: 0 18px 55px rgba(12, 18, 28, 0.06);
}

.tfmms-feature-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 26px;
    color: var(--tfm-rose-dark);
    background: #fff4ee;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 900;
}

.tfmms-feature-card p {
    margin-bottom: 0;
    font-size: 14px;
}

.tfmms-cases {
    background: linear-gradient(180deg, #fff 0%, var(--tfm-soft) 100%);
}

.tfmms-section-head {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 36px;
    align-items: end;
    margin-bottom: 34px;
}

.tfmms-section-head p {
    margin-bottom: 18px;
    font-size: 17px;
}

.tfmms-case-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.tfmms-case-card {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    color: inherit !important;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid rgba(20, 32, 51, 0.1);
    border-radius: 26px;
    padding: 16px 16px 20px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(12, 18, 28, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tfmms-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 80px rgba(12, 18, 28, 0.12);
    border-color: rgba(201, 143, 122, 0.38);
}

.tfmms-case-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    margin-bottom: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff7f1, #eff4f8);
    overflow: hidden;
}

.tfmms-case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tfmms-case-card:nth-child(2n) .tfmms-case-img {
    background: linear-gradient(135deg, #f7fbff, #fff4ee);
}

.tfmms-case-card:nth-child(3n) .tfmms-case-img {
    background: linear-gradient(135deg, #fbf7ff, #eef7ef);
}

.tfmms-case-card:nth-child(4n) .tfmms-case-img {
    background: linear-gradient(135deg, #f4fbff, #fffaf5);
}

.tfmms-card-tag {
    width: max-content;
    max-width: 100%;
    color: var(--tfm-rose-dark);
    background: #fff4ee;
    border: 1px solid rgba(201, 143, 122, 0.18);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.tfmms-case-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.tfmms-case-card p {
    font-size: 14px;
    margin-bottom: 18px;
}

.tfmms-mini-metric {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--tfm-line);
}

.tfmms-mini-metric strong {
    color: var(--tfm-navy);
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.tfmms-mini-metric span {
    color: var(--tfm-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tfmms-card-link {
    color: var(--tfm-rose-dark);
    font-size: 14px;
    font-weight: 900;
    margin-top: 18px;
}

.tfmms-dark-cta {
    padding: 70px 0;
    background: var(--tfm-soft);
}

.tfmms-dark-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 34px;
    align-items: center;
    background:
        radial-gradient(circle at 12% 10%, rgba(201, 143, 122, 0.28), transparent 30%),
        radial-gradient(circle at 78% 28%, rgba(214, 173, 114, 0.22), transparent 30%),
        linear-gradient(135deg, #07111f, #12233d 62%, #1c2d45);
    border-radius: 34px;
    padding: 48px;
    box-shadow: 0 28px 80px rgba(7, 17, 31, 0.24);
}

.tfmms-dark-inner h2,
.tfmms-dark-inner p {
    color: #fff;
}

.tfmms-dark-inner p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.74);
    margin-bottom: 0;
}

.tfmms-dark-inner .tfmms-kicker {
    color: #f0c9bc;
}

.tfmms-case-details {
    background: #fff;
}

.tfmms-detail-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 34px;
    align-items: start;
    padding: 38px;
    margin-bottom: 34px;
    background: #fff;
    border: 1px solid rgba(20, 32, 51, 0.1);
    border-radius: var(--tfm-radius-xl);
    box-shadow: 0 18px 60px rgba(12, 18, 28, 0.08);
    scroll-margin-top: 90px;
}

.tfmms-lead {
    font-size: 18px !important;
    max-width: 760px;
}

.tfmms-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 30px;
}

.tfmms-stat-box {
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff9f5, #ffffff);
    border: 1px solid rgba(201, 143, 122, 0.16);
}

.tfmms-stat-box strong {
    display: block;
    color: var(--tfm-navy);
    font-size: 29px;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 8px;
}

.tfmms-stat-box span {
    display: block;
    color: var(--tfm-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tfmms-detail-columns {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 26px;
    margin-top: 18px;
}

.tfmms-detail-columns ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.tfmms-detail-columns li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

.tfmms-detail-columns li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tfm-rose), var(--tfm-gold));
}

.tfmms-why-box {
    margin-top: 24px;
    padding: 24px;
    border-radius: 22px;
    background: #f7f4f1;
    border: 1px solid rgba(20, 32, 51, 0.08);
}

.tfmms-why-box p {
    margin-bottom: 0;
}

.tfmms-detail-visual {
    position: sticky;
    top: 28px;
    min-height: 430px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff7f1, #edf4f8);
    overflow: hidden;
    border: 1px solid rgba(20, 32, 51, 0.08);
}

.tfmms-detail-visual img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.tfmms-floating-card {
    position: absolute;
    right: 18px;
    bottom: 18px;
    max-width: 250px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 45px rgba(12, 18, 28, 0.16);
    backdrop-filter: blur(14px);
}

.tfmms-floating-card span {
    display: block;
    color: var(--tfm-rose-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.tfmms-floating-card strong {
    color: var(--tfm-navy);
    font-size: 18px;
    line-height: 1.2;
}

.tfmms-treatments {
    background: linear-gradient(180deg, #fff 0%, #fff9f5 100%);
}

.tfmms-pill-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.tfmms-pill-grid span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    color: var(--tfm-navy);
    background: #fff;
    border: 1px solid rgba(20, 32, 51, 0.1);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 34px rgba(12, 18, 28, 0.06);
}

.tfmms-final-cta {
    background:
        radial-gradient(circle at 20% 20%, rgba(201, 143, 122, 0.16), transparent 28%),
        linear-gradient(180deg, #fff9f5 0%, #fff 100%);
}

.tfmms-final-card {
    background: #fff;
    border: 1px solid rgba(20, 32, 51, 0.1);
    border-radius: 38px;
    box-shadow: var(--tfm-shadow);
    padding: 54px;
}

.tfmms-final-copy {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tfmms-final-copy .tfmms-hero-actions {
    justify-content: center;
    margin-top: 26px;
}

.tfmms-final-copy small {
    display: block;
    color: #8993a3;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 22px;
}

.tfmms-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.tfmms-reveal.tfmms-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1120px) {
    .tfmms-hero-grid,
    .tfmms-section-head,
    .tfmms-dark-inner,
    .tfmms-detail-card {
        grid-template-columns: 1fr;
    }

    .tfmms-case-grid,
    .tfmms-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tfmms-detail-visual {
        position: relative;
        top: auto;
    }
}

@media (max-width: 760px) {
    .tfmms-container {
        width: min(100% - 28px, 1180px);
    }

    .tfmms-hero {
        padding: 62px 0 54px;
    }

    .tfmms-medspa-page h1 {
        font-size: 44px;
    }

    .tfmms-medspa-page h2 {
        font-size: 34px;
    }

    .tfmms-hero-copy p,
    .tfmms-centered p,
    .tfmms-lead {
        font-size: 16px !important;
    }

    .tfmms-hero-actions,
    .tfmms-final-copy .tfmms-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tfmms-btn {
        width: 100%;
    }

    .tfmms-hero-proof,
    .tfmms-feature-grid,
    .tfmms-case-grid,
    .tfmms-stats-grid,
    .tfmms-detail-columns {
        grid-template-columns: 1fr;
    }

    .tfmms-intro,
    .tfmms-cases,
    .tfmms-case-details,
    .tfmms-treatments,
    .tfmms-final-cta {
        padding: 60px 0;
    }

    .tfmms-dark-inner,
    .tfmms-detail-card,
    .tfmms-final-card {
        padding: 28px;
        border-radius: 28px;
    }

    .tfmms-detail-visual,
    .tfmms-detail-visual img {
        min-height: auto;
        height: auto;
    }

    .tfmms-floating-card {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}
