/* ===== Zoho Campaigns MCP page ===== */

/* ---------- Common ---------- */
.zw-template-inner h2 {
    font-family: var(--secondaryfont-semibold);
    font-size: clamp(30px, 3.3vw, 48px);
    line-height: 1.17;
    letter-spacing: -0.96px;
    margin: 0
}

.zw-template-inner p {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 28px;
    letter-spacing: -0.36px
}

/* no single word left alone on the last line */
.zw-template-inner h1,
.zw-template-inner h2,
.zw-template-inner h3,
.zw-template-inner p {
    text-wrap: pretty
}

.zwc-line {
    display: block
}

/* MCP sprite: 40px card icons, then 24px icons */
.zwc-ico {
    display: inline-block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: url(/sites/zweb/images/campaigns/mcp-sprite.svg) no-repeat;
    background-size: 564px 40px
}

.zwc-ico-target,
.zwc-ico-check,
.zwc-ico-eye,
.zwc-ico-shield {
    width: 40px;
    height: 40px
}

.zwc-ico-target { background-position: 0 0 }
.zwc-ico-check { background-position: -50px 0 }
.zwc-ico-eye { background-position: -100px 0 }
.zwc-ico-shield { background-position: -150px 0 }
.zwc-ico-bulb { background-position: -200px 0 }
.zwc-ico-plug { background-position: -234px 0 }
.zwc-ico-rocket { background-position: -268px 0 }
.zwc-ico-pointer { background-position: -302px 0 }
.zwc-ico-settings { background-position: -336px 0 }
.zwc-ico-refresh { background-position: -370px 0 }
.zwc-ico-message { background-position: -404px 0 }
.zwc-ico-users { background-position: -438px 0 }
.zwc-ico-mail { background-position: -472px 0 }
.zwc-ico-calendar { background-position: -506px 0 }
.zwc-ico-chart { background-position: -540px 0 }

.zwc-btn-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px
}

.zw-template-inner .act-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 4px;
    font-family: var(--secondaryfont-semibold);
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 26px;
    letter-spacing: -0.32px;
    text-transform: uppercase
}

.zw-template-inner .act-btn.cta-btn {
    background: #e42527;
    color: #fff
}

/* right arrow drawn with CSS borders */
.zwc-btn-arrow {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin: 0 2px 0 -4px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-radius: 1px;
    transform: rotate(45deg)
}

.zw-template-inner .zwc-secondary-btn {
    padding: 14px 30px;
    border: 2px solid #000;
    background: transparent;
    color: #000
}

.zwc-sec-head {
    max-width: 800px;
    margin: 0 auto;
    text-align: center
}

.zw-template-inner .zwc-sec-head p {
    margin: 24px 0 0
}

/* ---------- Banner ---------- */
.zwc-banner-wrap {
    padding: clamp(60px, 7vw, 100px) 0;
    background: #ffe6e6;
    text-align: center
}

.zw-template-inner .zwc-banner-wrap h1 {
    font-family: var(--secondaryfont-semibold);
    font-size: clamp(34px, 3.7vw, 64px);
    line-height: 1.125;
    letter-spacing: -1.28px;
    margin: 0
}

.zw-template-inner .zwc-banner-wrap p {
    max-width: 850px;
    margin: 20px auto 40px
}

/* ---------- What is MCP ---------- */
.zwc-mcp-wrap {
    padding: clamp(60px, 7vw, 120px) 0;
    background: #fff
}

.zwc-mcp-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px
}

.zwc-mcp-text {
    max-width: 528px
}

.zw-template-inner .zwc-mcp-text p {
    max-width: 520px;
    margin: 28px 0 0
}

.zw-template-inner .zwc-mcp-term {
    font-family: var(--zf-secondary-medium);
    color: #0a55eb
}

.zw-template-inner .zwc-mcp-term:hover {
    text-decoration: underline
}

.zwc-mcp-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 498px;
    margin-top: 28px;
    padding: 24px 24px 24px 16px;
    background: #f6f6f6;
    border-left: 2px solid #e42527;
    border-radius: 0 8px 8px 0
}

.zw-template-inner .zwc-mcp-note p {
    margin: 0;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: -0.32px
}

.zwc-mcp-card {
    flex-shrink: 0;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    background: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 16px;
    filter: drop-shadow(0 24px 24px rgba(58, 2, 0, .06))
}

.zw-template-inner .zwc-mcp-card .zwc-mcp-card-label {
    margin: 0;
    font-family: var(--zf-secondary-medium);
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #626262
}

.zwc-mcp-tools {
    display: flex;
    justify-content: center;
    --zwc-tools-gap: 12px;
    gap: var(--zwc-tools-gap);
    margin: 12px 0 0;
    padding: 0;
    list-style: none
}

/* icon-only boxes, narrow and centered as a group */
.zwc-mcp-tools li {
    position: relative;
    display: flex;
    flex: 0 1 88px;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 16px;
    border: 1px solid #d1d1d1;
    border-radius: 8px
}

/* square 30px icons; contain keeps non-square logos like Cursor from stretching */
.zwc-mcp-tools img {
    object-fit: contain
}

/* connector tree: a short drop under each box joins a bar that runs from the first box to the last */
.zwc-mcp-tools li:after {
    content: '';
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    height: 20px;
    border-left: 1.5px dashed #c8c8c8
}

.zwc-mcp-tools li:before {
    content: '';
    position: absolute;
    top: calc(100% + 20px);
    left: calc(var(--zwc-tools-gap) / -2 - 1px);
    right: calc(var(--zwc-tools-gap) / -2 - 1px);
    border-top: 1.5px dashed #c8c8c8
}

.zwc-mcp-tools li:first-child:before {
    left: 50%
}

.zwc-mcp-tools li:last-child:before {
    right: 50%
}

.zwc-mcp-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    /* extra top space gives a longer line between the bar and the MCP pill */
    height: 116px;
    padding-top: 24px
}

.zwc-mcp-link:before {
    content: '';
    position: absolute;
    /* starts at the bar, not at the boxes */
    top: 20px;
    bottom: 0;
    left: 50%;
    border-left: 1.5px dashed #c8c8c8
}

.zwc-mcp-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #fef2f2;
    border: 1px solid #f6d7de;
    border-radius: 999px;
    font-family: var(--zf-secondary-medium);
    font-size: 16px;
    line-height: 26px
}

.zwc-mcp-app {
    padding: 24px;
    border-radius: 12px;
    background: radial-gradient(ellipse 80% 120% at 90% 0, rgba(172, 28, 23, .45) 0, rgba(172, 28, 23, 0) 70%), #450200
}

.zw-template-inner .zwc-mcp-app .zwc-mcp-app-title {
    margin: 0;
    font-family: var(--zf-secondary-medium);
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.48px;
    text-align: center;
    color: #fff
}

.zwc-mcp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none
}

.zwc-mcp-actions li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, .08);
    border-radius: 8px;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: -0.32px;
    color: #fff
}

.zwc-logo-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--secondaryfont-semibold);
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -0.4px;
    color: #000
}

.zwc-logo-lg {
    gap: 8px;
    font-size: 26px;
    line-height: 32px;
    letter-spacing: -0.52px
}

.zwc-chat-img img {
    display: block;
    width: 100%;
    height: auto
}

/* ---------- Use cases tabs ---------- */
.zwc-tab-wrap {
    padding: clamp(60px, 7vw, 120px) 0;
    /* 100px gap between the tab card and the prompt card below */
    padding-bottom: 100px;
    background: #fde7e5
}

.zwc-tab-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px
}

.zwc-tab-head {
    max-width: 470px;
    color: #000
}

.zw-template-inner .zwc-tab-head p {
    margin: 20px 0 50px;
    color: #000
}

.zwc-tab-list {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none
}

/* black bar that slides to the active tab; the script sets its position */
.zwc-tab-list:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: var(--zwc-ind-h, 61px);
    background: #000;
    transform: translateY(var(--zwc-ind-y, 0));
    transition: transform .6s cubic-bezier(.16, 1, .3, 1), height .6s cubic-bezier(.16, 1, .3, 1)
}

.zwc-tab-list button {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 61px;
    padding: 0 0 0 20px;
    background: none;
    border: 0;
    border-left: 2px solid #f5b8b6;
    font-family: var(--secondaryfont-regular);
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.36px;
    text-align: left;
    color: #3b3b3b;
    cursor: pointer
}

.zwc-tab-list .zwc-tab-num {
    font-size: 16px;
    line-height: 26px
}

.zwc-tab-list button.active {
    font-family: var(--secondaryfont-semibold);
    color: #000
}

.zwc-tab-list button.active .zwc-tab-num {
    font-size: 18px
}

.zwc-tab-panels {
    display: grid;
    width: 100%;
    max-width: 760px
}

/* all panels share one grid cell, so the area keeps its height and the panels cross-fade */
.zwc-tab-panel {
    grid-area: 1 / 1;
    padding: 48px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 20px;
    filter: drop-shadow(0 -8px 16px rgba(58, 2, 0, .06));
    align-self: start;
    transition: opacity .6s ease .1s, transform .8s cubic-bezier(.16, 1, .3, 1) .1s, visibility 0s linear 0s
}

.zwc-tab-panel[hidden] {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(60px);
    pointer-events: none;
    /* the old panel fades out in place, then drops below, ready to rise in next time */
    transition: opacity .3s ease, transform 0s linear .3s, visibility 0s linear .3s
}

.zwc-tab-panel.active {
    z-index: 1
}

.zwc-tab-list button {
    transition: color .3s ease, border-color .3s ease
}

@media (prefers-reduced-motion: reduce) {
    .zwc-tab-panel,
    .zwc-tab-panel[hidden],
    .zwc-tab-list button,
    .zwc-tab-list:after {
        transition: none
    }
}

.zwc-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.zwc-panel-count {
    font-family: var(--zf-secondary-medium);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.28px;
    color: #ac1c17
}

.zwc-panel-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #ffe6e6;
    border-radius: 12px
}

.zw-template-inner .zwc-tab-panel h3 {
    margin: 24px 0 0;
    font-family: var(--secondaryfont-semibold);
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.25;
    letter-spacing: -0.64px
}

.zw-template-inner .zwc-tab-panel > p {
    margin: 16px 0 0
}

.zwc-chat-img {
    margin-top: 32px
}

/* ---------- Prompt section ---------- */
/* top half matches the section above, so the card sits across both */
.zwc-prompt-wrap {
    background: linear-gradient(to bottom, #fde7e5 50%, #fff 50%)
}

.zwc-prompt-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    /* min-height: 515px; */
    padding: clamp(50px,6vw,90px);
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
    box-sizing: border-box;
    /* dark curtain look: soft vertical folds with a red glow at the bottom */
    background:
        radial-gradient(ellipse 70% 60% at 50% 110%, rgba(150, 30, 20, .55) 0, rgba(150, 30, 20, 0) 70%),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0, rgba(255, 255, 255, .03) 9px, rgba(0, 0, 0, .28) 18px),
        linear-gradient(180deg, #1c0806 0, #2b0d0a 100%)
}

.zwc-prompt-text {
    max-width: 470px;
}

.zw-template-inner .zwc-prompt-text h2 {
    color: #fff;
    margin-bottom: 20px
}

.zw-template-inner .zwc-prompt-text p {
    color: rgba(255, 255, 255, .85);
    margin: 0
}

.zwc-prompt-img {
    flex: 0 1 550px;
}

.zwc-prompt-img img {
    display: block;
    width: 100%;
    height: auto
}

@media (max-width: 991px) {
    .zwc-prompt-card {
        flex-direction: column;
        min-height: 0;
        text-align: center
    }

    .zwc-prompt-text {
        max-width: 600px
    }

    .zwc-prompt-img {
        flex: none;
        width: 100%;
        max-width: 480px
    }
}

@media (max-width: 767px) {
    .zwc-prompt-card {
        padding: 50px 20px;
        border-radius: 12px
    }
}

/* ---------- Best results ---------- */
.zwc-results-wrap {
    padding: clamp(60px, 6vw, 96px) 0;
    background: #fff
}

.zwc-results-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 64px 0 0;
    padding: 0;
    list-style: none
}

.zwc-results-list li {
    padding: 40px 32px 32px;
    background: #fff;
    border: 1px solid #ef8d8d;
    border-radius: 16px
}

.zw-template-inner .zwc-results-list h3 {
    margin: 32px 0 0;
    font-family: var(--secondaryfont-semibold);
    font-size: 20px;
    line-height: 30px;
    letter-spacing: -0.4px
}

.zw-template-inner .zwc-results-list p {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: -0.32px
}

.zw-template-inner .zwc-tip {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    max-width: 994px;
    margin: 64px auto 0;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: -0.32px
}

.zwc-tip-label {
    color: #ac1c17
}

/* ---------- AI tools ---------- */
.zwc-ai-tool-wrap {
    padding: clamp(60px, 7vw, 100px) 0;
    background: #ffe6e6
}

.zw-template-inner .zwc-ai-tool-wrap .zwc-sec-head p {
    margin-top: 16px
}

.zwc-ai-tools {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 880px;
    margin: 50px auto;
    padding: 0;
    list-style: none
}

.zwc-ai-tools li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 160px;
    padding: 0 16px 40px;
    background: #fff;
    border: 1px solid #ffc8c9;
    border-radius: 12px
}

.zw-template-inner .zwc-ai-tools p {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: -0.28px
}

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
    .zwc-results-list {
        grid-template-columns: repeat(2, 1fr);
        max-width: 840px;
        margin-left: auto;
        margin-right: auto
    }

    .zw-template-inner .zwc-results-list h3 {
        margin-top: 16px
    }

    /* keep the two columns close together instead of pushed to the far edges */
    .zwc-tab-inner {
        justify-content: center;
        gap: 60px
    }

    .zwc-tab-panels {
        max-width: 520px
    }

    .zwc-tab-panel {
        padding: 40px
    }
}

@media (max-width: 1024px) {
    .zwc-tab-inner {
        gap: 24px
    }

    .zwc-results-list,
    .zw-template-inner .zwc-tip {
        margin-top: 32px
    }

    .zwc-ai-tools {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        margin: 32px auto
    }

    .zwc-banner-wrap .zwc-line {
        display: inline
    }

    .zw-template-inner .zwc-banner-wrap p {
        max-width: 600px
    }

    .zwc-mcp-inner,
    .zwc-tab-inner {
        flex-direction: column;
        align-items: stretch
    }

    .zwc-mcp-text {
        max-width: 600px;
        margin: 0 auto
    }

    .zw-template-inner .zwc-mcp-text p {
        max-width: none
    }

    .zwc-mcp-note {
        max-width: none
    }

    .zwc-tab-head {
        max-width: 600px;
        margin: 0 auto;
        text-align: center
    }

    .zwc-mcp-card {
        margin: 0 auto
    }

    .zwc-tab-panels {
        max-width: 600px;
        margin: 0 auto;
        gap: 24px
    }

    /* tabs hidden: every panel shows, stacked one below the other */
    .zwc-tab-list {
        display: none
    }

    .zw-template-inner .zwc-tab-head p {
        margin-bottom: 0
    }

    .zwc-tab-panel,
    .zwc-tab-panel[hidden] {
        grid-area: auto;
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: none
    }
}

@media (max-width: 767px) {
    .zwc-banner-wrap,
    .zwc-mcp-wrap,
    .zwc-tab-wrap,
    .zwc-results-wrap,
    .zwc-ai-tool-wrap {
        padding: 40px 0
    }

    .zw-template-inner .act-btn {
        padding: 8px 20px;
        font-size: 13px
    }

    .zw-template-inner .zwc-secondary-btn {
        padding: 6px 18px
    }

    .zwc-mcp-card {
        padding: 24px
    }

    .zwc-mcp-tools li {
        padding: 10px 8px
    }

    .zwc-mcp-tools img {
        max-width: 100%;
        height: auto
    }

    .zwc-mcp-tools {
        --zwc-tools-gap: 8px
    }

    /* icon above the name so the logos never spill out of their boxes */
    .zwc-mcp-tools .zwc-logo-name {
        flex-direction: column;
        gap: 4px;
        font-size: 13px;
        line-height: 18px
    }

    .zwc-mcp-tools .zwc-logo-name img {
        width: 16px
    }

    .zwc-logo-lg {
        gap: 8px;
        font-size: 24px;
        line-height: 30px
    }

    .zwc-ai-tools img {
        width: auto;
        height: 30px
    }

    .zwc-mcp-app {
        padding: 16px
    }

    .zwc-mcp-actions li {
        padding: 10px 14px;
        font-size: 15px
    }

    .zwc-tab-panel {
        padding: 24px
    }

    .zwc-results-list,
    .zwc-ai-tools {
        grid-template-columns: 1fr;
        max-width: 600px
    }

    .zwc-ai-tools {
        max-width: 400px;
        gap: 12px
    }

    .zwc-ai-tools li {
        min-height: 0;
        gap: 8px;
        padding: 20px 16px
    }

    .zwc-line {
        display: inline
    }
}

@media (max-width: 479px) {
    .zwc-mcp-actions {
        grid-template-columns: 1fr
    }
}
 