/* =========================================================
   Managed AI Agents — Pricing fold
   Split out from cw_managed_AI_agent.css
   ========================================================= */

/* ---------- "Simple pricing" fold ---------- */
.managed_ai_agent .managed_ai_pricing_fold {
    position: relative;
    padding: 100px 0;
    background-color: #00001f;
    background-image: url("https://www.cloudways.com/wp-content/uploads/2026/07/bg_splash.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
}

.managed_ai_agent .pricing_head {
    max-width: 789px;
    margin: 0 auto 64px;
    text-align: center;
}

.managed_ai_agent .pricing_title {
    color: #ffffff;
    margin: 0 0 16px;
    text-align: center;
}

.managed_ai_agent .pricing_subtitle {
    color: #ffffff;
    margin: 0;
}

.managed_ai_agent .pricing_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 23px;
    max-width: 1296px;
    margin: 0 auto;
}

.managed_ai_agent .pricing_card {
    position: relative;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(9.77deg, rgba(252, 251, 255, 0.16) 10.412%, rgba(255, 255, 255, 0) 196.2%);
    box-shadow: 0 5.782px 35.452px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    /* No flex gap here; each child controls its own margin-top to
       reproduce the Figma spacing (12 / 12 / 25 / 24 between sections). */
}

/* Force every text element inside the card to render on the dark bg
   at full-white — defeats any theme/Bootstrap rule that dims text
   (e.g. --bs-body-color, .p1-regular, muted list items). */
.managed_ai_agent .pricing_card,
.managed_ai_agent .pricing_card p,
.managed_ai_agent .pricing_card span,
.managed_ai_agent .pricing_card strong,
.managed_ai_agent .pricing_card li {
    color: #ffffff;
}

.managed_ai_agent .pricing_plan_name {
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0;
}

.managed_ai_agent .pricing_price {
    margin: 12px 0 0;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #ffffff;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.managed_ai_agent .pricing_period {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.managed_ai_agent .pricing_card .pricing_amount {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #ffffff;
}

/* Static per-card note (e.g. "Free in Public Preview") — small gray line below the price */
.managed_ai_agent .pricing_note {
    margin: 12px 0 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #c1c7d0;
}

/* Section-level .discountPrice — one control that drives the whole grid.
   Renders as a centered pill above the section title. */
.managed_ai_agent .managed_ai_pricing_fold .discountPrice {
    display: inline-block;
    align-self: center;
    margin: 0 auto 16px;
    padding: 6px 14px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
}

/* When the section-level discount is a percentage, JS adds .is-percent
   so we paint the gradient product badge. */
.managed_ai_agent .managed_ai_pricing_fold .discountPrice.is-percent {
    background: linear-gradient(90deg, #0FAFFF 0%, #367AF2 40%, #5750E2 80%);
    border-color: transparent;
    padding: 6px 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Center the head so the discountPrice pill sits above the title */
.managed_ai_agent .managed_ai_pricing_fold .pricing_head {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Discounted price inserted by JS below the strikethrough original.
   Renders at the same hero size as the default non-discount price. */
.managed_ai_agent .pricing_new_price {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #ffffff;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    margin: 4px 0 0;
}

/* When a computed discounted price is shown, shrink the strikethrough original
   so it sits as a small note above the new big price. */
.managed_ai_agent .pricing_card.has-discount .pricing_price {
    line-height: 1;
    margin-top: 12px;
}

.managed_ai_agent .pricing_card.has-discount .pricing_price .pricing_amount {
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: line-through;
    text-decoration-color: #EF4444;
    text-decoration-thickness: 2px;
}

.managed_ai_agent .pricing_card.has-discount .pricing_price .pricing_period {
    display: none;
}

.managed_ai_agent .pricing_card .primaryBtn_outline {
    margin-top: 25px;
    display: flex;
    width: 100%;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
    border-radius: 5px;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 0 16px;
}

.managed_ai_agent .pricing_card .primaryBtn_outline:hover,
.managed_ai_agent .pricing_card .primaryBtn_outline:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: #ffffff;
}

.managed_ai_agent .pricing_specs {
    margin: 24px 0 0;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 16px;
    color: #ffffff;
}

.managed_ai_agent .pricing_specs li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    line-height: 1.5;
    letter-spacing: -0.01em;
    font-weight: 400;
}

.managed_ai_agent .pricing_specs li strong {
    font-weight: 600;
}

.managed_ai_agent .pricing_check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #ffffff;
}

/* =========================================================
   Responsive
   ========================================================= */

/* Between the Bootstrap ≥1200 and ≤992 breakpoints the .container is only
   960px wide — 4 pricing cards can't fit without overflowing. Drop to 2. */
@media (max-width: 1199px) and (min-width: 993px) {
    .managed_ai_agent .pricing_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}


@media (max-width: 992px) {
    /* OpenClaw pricing grid drops from 4-col to 2-col */
    .managed_ai_agent .managed_ai_pricing_fold {
        padding: 72px 0;
    }

    .managed_ai_agent .pricing_head {
        margin-bottom: 40px;
    }

    .managed_ai_agent .pricing_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    /* Reduce the huge price so 2 cards fit side by side on tablet */
    .managed_ai_agent .pricing_price,
    .managed_ai_agent .pricing_card .pricing_amount,
    .managed_ai_agent .pricing_new_price {
        font-size: 32px;
    }

}

@media (max-width: 480px) {
    /* OpenClaw pricing drops to 1-col on mobile */
    .managed_ai_agent .managed_ai_pricing_fold {
        padding: 56px 0;
    }

    .managed_ai_agent .pricing_head {
        margin-bottom: 32px;
    }

    .managed_ai_agent .pricing_grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .managed_ai_agent .pricing_card {
        padding: 20px;
    }

    .managed_ai_agent .pricing_price,
    .managed_ai_agent .pricing_card .pricing_amount,
    .managed_ai_agent .pricing_new_price {
        font-size: 32px;
    }

}
