/* Shared structure pieces for the Digital Marketing pages (/google-ads, /seo,
   /email-marketing, /services/social-media-marketing) so they close their
   price lists like the graphic design and website service pages. */

.dm-package-benefits {
    text-align: center;
    margin: 28px auto 0;
}

.dm-package-benefits ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

.dm-package-benefits li {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    font-size: 13px;
    line-height: 26px;
}

.dm-package-benefits,
.dm-package-benefits li,
.dm-package-benefits li a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.dm-package-benefits li a:hover {
    color: #ffffff;
}

.dm-package-benefits li img {
    width: 16px;
    margin-right: 8px;
    filter: hue-rotate(110deg) saturate(4.7);
}

html[data-tk-theme="light"] .dm-package-benefits,
html[data-tk-theme="light"] .dm-package-benefits li,
html[data-tk-theme="light"] .dm-package-benefits li a {
    color: #5F6872;
}

html[data-tk-theme="light"] .dm-package-benefits li a:hover {
    color: #0A0D0F;
}

@media (max-width: 575px) {
    .dm-package-benefits ul {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}

/* Email Marketing's process has four steps; the shared phase grid is three
   columns, so it gets four (two on tablets) instead of wrapping one step. */
@media (min-width: 1200px) {
    .dmx .dmx-phases.em-process {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dmx .dmx-phases.em-process .dmx-phase + .dmx-phase {
        padding-left: 28px;
    }

    .dmx .dmx-phases.em-process .dmx-phase {
        padding-right: 28px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .dmx .dmx-phases.em-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dmx .dmx-phases.em-process .dmx-phase:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }
}

/* ---- Plan cards (partials/digital-marketing/plans) ----------------------
   Same shape as the social media package cards. They carry their own
   colour tokens so they read the same on the .dmx pages and on /seo, and
   follow the light/dark theme toggle. */
.dm-plans,
.dm-plans-note {
    --dmp-blue: var(--primary-color, #0073FC);
    --dmp-panel: #121518;
    --dmp-ink: #F3F5F7;
    --dmp-ink-2: rgba(243, 245, 247, 0.72);
    --dmp-ink-3: rgba(243, 245, 247, 0.5);
    --dmp-rule: rgba(255, 255, 255, 0.1);
    --dmp-rule-strong: rgba(255, 255, 255, 0.2);
}

html[data-tk-theme="light"] .dm-plans,
html[data-tk-theme="light"] .dm-plans-note {
    --dmp-panel: #FFFFFF;
    --dmp-ink: #0A0D0F;
    --dmp-ink-2: #3E464F;
    --dmp-ink-3: #6B747E;
    --dmp-rule: rgba(15, 23, 42, 0.1);
    --dmp-rule-strong: rgba(15, 23, 42, 0.18);
}

.dm-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.dm-plans .dm-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 32px 32px;
    border: 1px solid var(--dmp-rule-strong);
    border-radius: 18px;
    background: var(--dmp-panel);
}

.dm-plans .dm-plan--featured {
    border: 2px solid var(--dmp-blue);
    box-shadow: 0 18px 50px rgba(0, 115, 252, 0.18);
}

.dm-plans .dm-plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    border-radius: 999px;
    background: var(--dmp-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dm-plans .dm-plan h3 {
    margin: 0 0 6px;
    color: var(--dmp-ink);
    font-family: var(--tk-heading-font, Montserrat, system-ui, sans-serif);
    font-size: 23px;
    font-weight: 800;
}

.dm-plans .dm-plan-for {
    margin: 0 0 18px;
    color: var(--dmp-ink-2);
    font-size: 14.5px;
    line-height: 1.55;
}

.dm-plans .dm-plan-price {
    color: var(--dmp-ink);
    font-family: var(--tk-heading-font, Montserrat, system-ui, sans-serif);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}

.dm-plans .dm-plan-price small {
    margin-left: 2px;
    color: var(--dmp-ink-2);
    font-size: 14px;
    font-weight: 500;
}

.dm-plans .dm-plan-setup {
    margin: 10px 0 0;
    color: var(--dmp-ink-3);
    font-size: 13px;
}

.dm-plans .dm-plan-rule {
    margin: 22px 0;
    border: 0;
    border-top: 1px solid var(--dmp-rule);
    opacity: 1;
}

.dm-plans .dm-plan-list {
    flex: 1;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.dm-plans .dm-plan-list li {
    position: relative;
    padding: 6px 0 6px 28px;
    color: var(--dmp-ink-2);
    font-size: 14.5px;
    line-height: 1.5;
}

.dm-plans .dm-plan-list li::before {
    content: "\2713";
    position: absolute;
    top: 5px;
    left: 2px;
    color: var(--dmp-blue);
    font-weight: 800;
}

.dm-plans .dm-plan-cta {
    display: block;
    padding: 14px 20px;
    border: 1.5px solid var(--dmp-blue);
    border-radius: 999px;
    color: var(--dmp-blue);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dm-plans .dm-plan--featured .dm-plan-cta,
.dm-plans .dm-plan-cta:hover {
    background: var(--dmp-blue);
    color: #fff;
}

.dm-plans-note {
    max-width: 900px;
    margin: 26px auto 0;
    color: var(--dmp-ink-3);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.dm-plans--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1180px;
}

.dm-plans .dm-plan-cta:hover,
.dm-plans .dm-plan-cta:focus {
    text-decoration: none;
}

@media (min-width: 768px) and (max-width: 1099px) {
    .dm-plans--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dm-plans,
    .dm-plans--3 {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .dm-plans .dm-plan {
        padding: 36px 22px 26px;
    }

    .dm-plans .dm-plan--featured {
        order: -1;
    }

    /* Phone swipe rail (tbtk-mobile-price-swipe): the rail strips the
       slide's side padding, so the card's content takes it back. */
    .dm-plans .dm-plan.tbtk-mps-slide > * {
        height: auto !important;
    }

    .dm-plans .dm-plan.tbtk-mps-slide > *:not(.dm-plan-badge) {
        margin-right: 22px;
        margin-left: 22px;
    }

    .dm-plans .dm-plan.tbtk-mps-slide > .dm-plan-rule,
    .dm-plans .dm-plan.tbtk-mps-slide > .dm-plan-cta {
        width: calc(100% - 44px);
    }
}
