﻿/* =====================================================================
   CONTENT MARKETING PAGE  -  /wwwroot/css/contentmarketing.css
   Works inside _Layout. Every class starts with "cm-".
   Fixed navbar offset is read from --nav2-h and --nav-h of the layout.
   ===================================================================== */
.cm-page {
    --cm-blue: #2f5bff;
    --cm-blue-d: #1d3fd1;
    --cm-sky: #7fa2ff;
    --cm-ink: #0a1230;
    --cm-muted: #516089;
    --cm-bg: #f6f8ff;
    --cm-tint: #e8eeff;
    --cm-coral: #ff7a59;
    --cm-green: #19c28a;
    --cm-line: rgba(10,18,48,.12);
    --cm-offset: calc(var(--nav2-h,42px) + var(--nav-h,100px));
    --cm-head: 'Bricolage Grotesque',system-ui,sans-serif;
    --cm-body: 'Instrument Sans',system-ui,sans-serif;
    font-family: var(--cm-body);
    color: var(--cm-ink);
    background: var(--cm-bg);
    line-height: 1.65;
    overflow-x: hidden;
}

    .cm-page *, .cm-page *::before, .cm-page *::after {
        box-sizing: border-box
    }

    .cm-page img {
        max-width: 100%;
        display: block
    }

    .cm-page a {
        text-decoration: none;
        color: inherit
    }

    .cm-page h1, .cm-page h2, .cm-page h3 {
        font-family: var(--cm-head);
        font-weight: 800;
        letter-spacing: -.03em;
        line-height: 1.1;
        margin: 0;
        color: var(--cm-ink)
    }

    .cm-page p {
        margin: 0
    }

    .cm-page :focus-visible {
        outline: 2px solid var(--cm-blue);
        outline-offset: 3px
    }

.cm-wrap {
    width: min(1180px,100% - 2.5rem);
    margin-inline: auto
}

.cm-section {
    padding: clamp(3.5rem,9vw,7rem) 0
}

.cm-alt {
    background: var(--cm-tint)
}

.cm-white {
    background: #fff
}

.cm-title {
    font-size: clamp(1.8rem,4.2vw,3.1rem);
    max-width: 19ch
}

.cm-lead {
    color: var(--cm-muted);
    font-size: clamp(1rem,1.4vw,1.15rem);
    max-width: 58ch;
    margin-top: 1rem
}

.cm-head {
    margin-bottom: clamp(2rem,5vw,3.5rem)
}

.cm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .95rem 1.7rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    border: 1px solid var(--cm-blue);
    transition: transform .3s,background .3s,color .3s,box-shadow .3s;
    cursor: pointer
}

.cm-btn-fill {
    background: var(--cm-blue);
    color: #fff
}

    .cm-btn-fill:hover {
        background: #fff;
        color: var(--cm-blue);
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(47,91,255,.25)
    }

.cm-btn-line {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.55)
}

    .cm-btn-line:hover {
        background: #fff;
        color: var(--cm-ink);
        transform: translateY(-3px)
    }

/* ================= HERO ================= */
.cm-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    padding: calc(var(--cm-offset) + clamp(2.5rem,6vw,5rem)) 0 clamp(3.5rem,8vw,6rem);
    background: radial-gradient(800px 480px at 10% 90%,rgba(255,122,89,.16),transparent 60%),radial-gradient(900px 500px at 88% 15%,rgba(47,91,255,.55),transparent 60%),linear-gradient(160deg,#0a1230 0%,#12256e 100%);
}

.cm-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem,5vw,4.5rem);
    align-items: center
}

.cm-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem,5.4vw,4.4rem);
    line-height: 1.05
}

    .cm-hero h1 em {
        font-style: normal;
        color: var(--cm-coral)
    }

.cm-hero-p {
    margin-top: 1.4rem;
    max-width: 52ch;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem,1.5vw,1.15rem)
}

.cm-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2rem
}

.cm-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.6rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255,255,255,.8);
    font-size: .92rem
}

    .cm-hero-points li::before {
        content: "\2713";
        color: var(--cm-coral);
        margin-right: .5rem;
        font-weight: 700
    }

/* content board mockup */
.cm-board {
    position: relative;
    background: #fff;
    color: var(--cm-ink);
    border-radius: 18px;
    padding: 1.1rem;
    box-shadow: 0 40px 80px rgba(0,0,0,.45)
}

.cm-board-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .2rem .3rem .9rem;
    font-family: var(--cm-head);
    font-weight: 800
}

    .cm-board-top span {
        font-family: var(--cm-body);
        font-size: .76rem;
        font-weight: 600;
        color: var(--cm-muted);
        background: var(--cm-tint);
        padding: .25rem .7rem;
        border-radius: 99px
    }

.cm-post {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: .9rem;
    align-items: center;
    border: 1px solid var(--cm-line);
    border-radius: 12px;
    padding: .6rem;
    margin-bottom: .7rem;
    background: #fff
}

    .cm-post:last-of-type {
        margin-bottom: 0
    }

.cm-post-img {
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(160deg,#9db7ff,#dbe5ff)
}

    .cm-post-img img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.cm-post b {
    display: block;
    font-size: .9rem;
    line-height: 1.3
}

.cm-post small {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-top: .3rem;
    font-size: .72rem;
    color: var(--cm-muted)
}

.cm-pill {
    padding: .1rem .55rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: .68rem;
    background: var(--cm-tint);
    color: var(--cm-blue-d)
}

    .cm-pill.v {
        background: rgba(255,122,89,.15);
        color: #c4472a
    }

    .cm-pill.s {
        background: rgba(25,194,138,.15);
        color: #0e8a62
    }

.cm-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    padding: .7rem 1rem;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(10,18,48,.3);
    font-size: .82rem;
    font-weight: 600;
    animation: cmFloat 5s ease-in-out infinite
}

    .cm-chip b {
        display: block;
        font-family: var(--cm-head);
        font-size: 1.15rem;
        line-height: 1;
        color: var(--cm-green)
    }

    .cm-chip.c1 {
        left: -6%;
        bottom: -7%
    }

    .cm-chip.c2 {
        right: -4%;
        top: -7%;
        animation-delay: -2.2s
    }

        .cm-chip.c2 b {
            color: var(--cm-blue)
        }

@keyframes cmFloat {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

/* ================= STRIP ================= */
.cm-strip {
    background: #fff;
    border-bottom: 1px solid var(--cm-line)
}

.cm-strip-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr)
}

.cm-strip-item {
    padding: 1.6rem 1rem;
    text-align: center;
    border-right: 1px solid var(--cm-line)
}

    .cm-strip-item:last-child {
        border-right: 0
    }

    .cm-strip-item b {
        display: block;
        font-family: var(--cm-head);
        font-size: clamp(1.4rem,3vw,2.2rem);
        color: var(--cm-blue);
        line-height: 1
    }

    .cm-strip-item span {
        display: block;
        margin-top: .4rem;
        font-size: .9rem;
        color: var(--cm-muted)
    }

/* ================= CARDS ================= */
.cm-cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem
}

.cm-card {
    background: #fff;
    border: 1px solid var(--cm-line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .4s,box-shadow .4s,border-color .4s
}

    .cm-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 44px rgba(47,91,255,.16);
        border-color: rgba(47,91,255,.4)
    }

.cm-card-img {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(160deg,#9db7ff,#dbe5ff)
}

    .cm-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .7s
    }

.cm-card:hover .cm-card-img img {
    transform: scale(1.08)
}

.cm-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex: 1
}

.cm-card h3 {
    font-size: 1.25rem
}

.cm-card p {
    color: var(--cm-muted);
    font-size: .95rem
}

.cm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: auto;
    padding-top: .6rem
}

    .cm-tags span {
        font-size: .78rem;
        padding: .25rem .7rem;
        border-radius: 99px;
        background: var(--cm-tint);
        color: var(--cm-blue-d);
        font-weight: 600
    }

/* ================= SPLIT ================= */
.cm-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem,6vw,5rem);
    align-items: center
}

.cm-photo {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3.4;
    background: linear-gradient(160deg,#9db7ff,#dbe5ff);
    box-shadow: 0 30px 60px rgba(10,18,48,.18)
}

    .cm-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.cm-list {
    list-style: none;
    margin: 1.8rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.1rem
}

    .cm-list li {
        display: grid;
        grid-template-columns: 40px 1fr;
        gap: 1rem
    }

    .cm-list .ic {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: var(--cm-blue);
        display: grid;
        place-items: center
    }

        .cm-list .ic svg {
            width: 20px;
            height: 20px;
            stroke: #fff;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round
        }

    .cm-list h3 {
        font-size: 1.05rem;
        margin-bottom: .15rem
    }

    .cm-list p {
        color: var(--cm-muted);
        font-size: .93rem
    }

/* ================= FORMATS ================= */
.cm-grid4 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem
}

.cm-box {
    background: var(--cm-bg);
    border: 1px solid var(--cm-line);
    border-radius: 14px;
    padding: 1.4rem
}

    .cm-box h3 {
        font-size: 1.05rem;
        color: var(--cm-blue);
        margin-bottom: .9rem
    }

    .cm-box ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: .5rem;
        font-size: .94rem
    }

    .cm-box li {
        display: flex;
        align-items: center;
        gap: .6rem
    }

        .cm-box li::before {
            content: "";
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--cm-coral);
            flex: none
        }

/* ================= STEPS ================= */
.cm-steps {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 1.2rem;
    counter-reset: cm;
    position: relative
}

    .cm-steps::before {
        content: "";
        position: absolute;
        left: 5%;
        right: 5%;
        top: 26px;
        height: 2px;
        background: repeating-linear-gradient(90deg,var(--cm-blue) 0 8px,transparent 8px 16px);
        opacity: .4
    }

.cm-step {
    position: relative;
    text-align: center;
    padding: 0 .4rem
}

    .cm-step::before {
        counter-increment: cm;
        content: counter(cm);
        display: grid;
        place-items: center;
        width: 54px;
        height: 54px;
        margin: 0 auto 1rem;
        border-radius: 50%;
        background: var(--cm-blue);
        color: #fff;
        font-family: var(--cm-head);
        font-weight: 800;
        font-size: 1.2rem;
        box-shadow: 0 0 0 8px var(--cm-tint)
    }

    .cm-step h3 {
        font-size: 1.08rem;
        margin-bottom: .4rem
    }

    .cm-step p {
        color: var(--cm-muted);
        font-size: .92rem
    }

/* ================= FAQ ================= */
.cm-faq {
    max-width: 820px;
    margin-inline: auto
}

    .cm-faq details {
        border-bottom: 1px solid var(--cm-line)
    }

    .cm-faq summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 1.3rem 0;
        font-family: var(--cm-head);
        font-weight: 800;
        font-size: clamp(1.02rem,2vw,1.3rem)
    }

        .cm-faq summary::-webkit-details-marker {
            display: none
        }

        .cm-faq summary::after {
            content: "+";
            font-size: 1.6rem;
            line-height: 1;
            color: var(--cm-blue);
            transition: transform .3s
        }

    .cm-faq details[open] summary::after {
        transform: rotate(45deg)
    }

    .cm-faq details p {
        padding: 0 0 1.3rem;
        color: var(--cm-muted);
        max-width: 68ch
    }

/* ================= CTA ================= */
.cm-cta {
    background: linear-gradient(135deg,#0a1230,#1d3fd1);
    color: #fff;
    border-radius: 22px;
    padding: clamp(2.2rem,6vw,4.5rem);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden
}

    .cm-cta::after {
        content: "";
        position: absolute;
        right: -80px;
        top: -80px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        border: 2px solid rgba(255,122,89,.45)
    }

    .cm-cta h2 {
        color: #fff;
        font-size: clamp(1.6rem,3.6vw,2.7rem);
        max-width: 20ch
    }

    .cm-cta p {
        color: rgba(255,255,255,.8);
        margin-top: .8rem;
        max-width: 46ch
    }

    .cm-cta .cm-btn-fill {
        background: #fff;
        color: var(--cm-blue);
        border-color: #fff;
        position: relative;
        z-index: 2
    }

        .cm-cta .cm-btn-fill:hover {
            background: transparent;
            color: #fff
        }

/* reveal */
.cm-js .cm-rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease,transform .8s ease
}

    .cm-js .cm-rv.cm-in {
        opacity: 1;
        transform: none
    }

/* ================= RESPONSIVE ================= */
@media (max-width:1100px) {
    .cm-cards {
        grid-template-columns: repeat(2,1fr)
    }

    .cm-grid4 {
        grid-template-columns: repeat(2,1fr)
    }

    .cm-steps {
        grid-template-columns: repeat(3,1fr);
        row-gap: 2rem
    }

        .cm-steps::before {
            display: none
        }
}

@media (max-width:900px) {
    .cm-hero-grid, .cm-split {
        grid-template-columns: 1fr
    }

    .cm-board {
        max-width: 540px;
        margin-inline: auto
    }

    .cm-chip.c1 {
        left: -2%
    }

    .cm-chip.c2 {
        right: -2%
    }

    .cm-split-img {
        max-width: 520px;
        margin-inline: auto;
        width: 100%
    }

    .cm-strip-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .cm-strip-item:nth-child(2) {
        border-right: 0
    }

    .cm-strip-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--cm-line)
    }
}

@media (max-width:767px) {
    .cm-page {
        --cm-offset: calc(var(--nav2-h,38px) + var(--nav-h,64px))
    }

    .cm-hero-cta .cm-btn {
        flex: 1 1 100%
    }

    .cm-cards {
        grid-template-columns: 1fr
    }

    .cm-steps {
        grid-template-columns: 1fr 1fr
    }

    .cm-card-img {
        height: 165px
    }

    .cm-cta {
        text-align: center;
        justify-content: center
    }

        .cm-cta .cm-btn {
            width: 100%
        }
}

@media (max-width:480px) {
    .cm-wrap {
        width: min(1180px,100% - 1.6rem)
    }

    .cm-grid4, .cm-steps {
        grid-template-columns: 1fr
    }

    .cm-post {
        grid-template-columns: 70px 1fr
    }

    .cm-chip.c1 {
        left: 0;
        bottom: -10%
    }

    .cm-chip.c2 {
        right: 0;
        top: -10%
    }
}

@media (prefers-reduced-motion:reduce) {
    .cm-page * {
        animation: none !important;
        transition: none !important
    }

    .cm-js .cm-rv {
        opacity: 1;
        transform: none
    }
}
