/* =====================================================================
   PROJECT CASE STUDY — HERO BANNER + PROJECT HIGHLIGHTS
   Markup: intralife-case-study.php
   Banner in the same style as the Careers page hero: text on the left,
   a wide photo on the right fading into the light background.
   Highlights in the same style as the home page feature bar.
   Uses the shared site styles: .cs-eyebrow, .cs-title / .cs-accent, .cs-btn.
   Load after common.css and buttons.css.

   1. Banner
   2. Banner text
   3. Banner photo
   4. Project highlights bar
   5. Tablets and phones
   6. Reduced motion
   7. Case study content + "On this page" index
   8. Service cards (Website Design & Development and the services after it)
   9. SEO & AI Search Optimisation (metrics, monthly growth
      chart, keyword rankings, report cards)
   10. Social Media Marketing (headline figures, process steps,
       poster / carousel / reel sliders, platform management + overview,
       growth chart, before & after, business impact)
   11. Performance Marketing (campaign facts + results, ad showcase,
       monthly leads chart, before vs after table)
   12. Branding & Creative Solutions (colour palette)
   13. Layout pieces added in the shorter layout (2-card pairs, solo CTAs,
       strips that scroll by themselves, before/after slider, landing pages,
       profile screenshots, branding gallery + typography, FAQ questions)
   14. Below the case study: client review, FAQ, enquiry form
   ===================================================================== */

/* ---------- 1. Banner ---------- */
.cs-case-hero {
    --case-surface: #f4f8fd;
    --case-copy: #344c64;
    --case-photo-start: 46%;           /* where the photo begins (from the left) */
    --case-photo-position: center 40%; /* which part of the photo stays in view */

    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: clamp(420px, 36vw, 560px);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 0% 100%, #e3f3fc, transparent 34%),
        linear-gradient(105deg, #f9fbfe, var(--case-surface) 46%);
}

.cs-case-hero > .container {
    position: relative;
    z-index: 1;
}

/* ---------- 2. Banner text ---------- */
.cs-case-hero__content {
    width: min(50%, 600px);
    /* extra room at the bottom: the highlights bar sits over the banner edge */
    padding-block: clamp(40px, 5vw, 72px) clamp(84px, 8vw, 116px);
    text-align: left;
}

/* client name on its own line with a brush-stroke underline (as on Careers) */
.cs-case-hero .cs-case-hero__brand {
    width: fit-content;
    max-width: 100%;
}

.cs-case-hero__intro {
    max-width: 52ch;
    margin: 11px 0 0;
    color: var(--case-copy);
    font-size: clamp(0.98rem, 1.2vw, 1.1rem);
    line-height: 1.7;
}

.cs-case-hero__actions {
    margin-top: 28px;
}

/* ---------- 3. Banner photo ---------- */
.cs-case-hero__media {
    position: absolute;
    inset: 0 0 0 var(--case-photo-start);
}

.cs-case-hero__media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--case-photo-position);
}

/* the photo fades into the background on its left side */
.cs-case-hero__media::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--case-surface) 0%,
        rgb(244 248 253 / 94%) 9%,
        rgb(244 248 253 / 60%) 19%,
        transparent 36%
    );
    content: "";
}

/* ---------- 4. Project highlights bar ---------- */
.cs-case-highlights {
    position: relative;
    z-index: 2;
    margin-top: clamp(-64px, -5vw, -48px);
    padding-bottom: clamp(44px, 5vw, 72px);
}

.cs-case-highlights__bar {
    position: relative;
    padding: 1px;
    overflow: hidden;
    background: linear-gradient(135deg, #d6ecf6, #eef7fb 50%, #d6ecf6);
    border-radius: 30px;
    box-shadow: 0 22px 50px rgba(8, 72, 112, 0.12);
}

/* a soft light that travels round the border */
.cs-case-highlights__runner {
    position: absolute;
    top: 0;
    left: -260px;
    width: 260px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #159dd3, transparent);
    animation: csCaseRun 9s linear infinite;
}

@keyframes csCaseRun {
    0% {
        top: 0;
        left: -260px;
    }

    45% {
        top: 0;
        left: 100%;
    }

    50% {
        top: calc(100% - 2px);
        left: 100%;
    }

    95% {
        top: calc(100% - 2px);
        left: -260px;
    }

    100% {
        top: 0;
        left: -260px;
    }
}

.cs-case-highlights__inner {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #ffffff;
    border-radius: 29px;
}

.cs-case-highlight {
    display: flex;
    /*align-items: center;*/
    gap: 14px;
    padding: 24px 26px;
}

.cs-case-highlight:not(:last-child) {
    border-right: 1px solid #e6f0f5;
}

.cs-case-highlight__icon {
    display: grid;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #0870af;
    font-size: 20px;
    background: #e9f8fd;
    border-radius: 16px;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.cs-case-highlight:hover .cs-case-highlight__icon {
    color: #ffffff;
    background: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
}

/* the value shows above its label */
.cs-case-highlight__text {
    display: flex;
    flex-direction: column-reverse;
    min-width: 0;
    margin: 0;
}

.cs-case-highlight__text dd {
    margin: 0;
    color: #333537;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

.cs-case-highlight__text dt {
    margin-top: 4px;
    color: #505253;
    font-size: 16px;
    font-weight: 500;
}

/* ---------- 5. Tablets and phones ---------- */
@media (max-width: 1199.98px) {
    .cs-case-highlight {
        padding: 20px 18px;
    }

    .cs-case-highlight__text dd {
        font-size: 17px;
    }
}

/* laptops (992–1199px): 4 narrower items, so the icon sits above the text */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .cs-case-highlight {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* text above, photo below (as on Careers); highlights 2 × 2 */
@media (max-width: 991.98px) {
    .cs-case-hero {
        min-height: 0;
    }

    .cs-case-hero__content {
        width: 100%;
        padding-block: 36px 26px;
    }

    .cs-case-hero__media {
        position: relative;
        inset: auto;
        height: clamp(240px, 50vw, 380px);
    }

    .cs-case-hero__media::after {
        background: linear-gradient(
            180deg,
            var(--case-surface),
            rgb(244 248 253 / 45%) 10%,
            transparent 28%
        );
    }

    .cs-case-highlights {
        margin-top: -44px;
    }

    .cs-case-highlights__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cs-case-highlight:nth-child(2) {
        border-right: 0;
    }

    .cs-case-highlight:nth-child(-n + 2) {
        border-bottom: 1px solid #e6f0f5;
    }
}

@media (max-width: 575.98px) {
    .cs-case-hero__content {
        padding-block: 28px 22px;
    }

    .cs-case-hero__actions .cs-btn {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .cs-case-hero__media {
        height: clamp(220px, 62vw, 300px);
    }

    .cs-case-highlights {
        margin-top: -36px;
    }

    .cs-case-highlights__bar {
        border-radius: 22px;
    }

    .cs-case-highlights__inner {
        border-radius: 21px;
    }

    .cs-case-highlight {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px;
    }

    .cs-case-highlight__icon {
        width: 44px;
        height: 44px;
        font-size: 17px;
        border-radius: 13px;
    }

    .cs-case-highlight__text dd {
        font-size: 16px;
    }

    .cs-case-highlight__text dt {
        font-size: 12.5px;
    }
}

/* ---------- 6. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .cs-case-highlights__runner {
        display: none;
        animation: none;
    }

    .cs-case-highlight__icon {
        transition: none;
    }
}

/* =====================================================================
   7. CASE STUDY CONTENT + "ON THIS PAGE" INDEX
   Markup: the .cs-case-body section in intralife-case-study.php
   Left column (col-lg-8): .cs-case-block sections.
   Right column (col-lg-4): .cs-case-index, stays in view while scrolling.
   Script: assets/js/pages/portfolio-details.js (active link + progress).

   7.1 Section
   7.2 Content blocks
   7.5 Index card
   7.6 Enquiry card under the index
   7.7 Tablets and phones
   ===================================================================== */

/* ---------- 7.1 Section ---------- */
.cs-case-body {
    --cb-blue: #0870af;
    --cb-cyan: #159dd3;
    --cb-line: #e1edf4;
    --cb-ice: #eef7fc;
    --cb-amber: #c9741b;
    --cb-amber-bg: #fff3e4;
    --cb-sticky-top: 150px; /* space for the sticky site header; the script sets it to header height + 20px */

    position: relative;
    padding: clamp(20px, 3vw, 40px) 0 var(--cs-section-y, 80px);
}

/* ---------- 7.2 Content blocks ---------- */
.cs-case-block {
    position: relative;
    padding: clamp(22px, 2.6vw, 34px);
    scroll-margin-top: var(--cb-sticky-top);
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(8, 72, 112, 0.05);
}

/* space between cards (and the CTA / card pairs between them) */
.cs-case-block + .cs-case-block,
.cs-case-block + .cs-case-pair,
.cs-case-pair + .cs-case-block,
.cs-case-cta--solo + .cs-case-block,
.cs-case-block + .cs-case-cta--solo {
    margin-top: clamp(16px, 1.8vw, 22px);
}

/* big faint step number in the corner */
.cs-case-block__step {
    position: absolute;
    top: clamp(18px, 2.4vw, 28px);
    right: clamp(20px, 2.8vw, 34px);
    color: transparent;
    font-size: clamp(2.6rem, 4.4vw, 3.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    -webkit-text-stroke: 1.5px #cfe4f0;
    pointer-events: none;
    user-select: none;
}

.cs-case-block .cs-eyebrow {
    text-align: left;
}

.cs-case-block .cs-title {
    font-size: clamp(1.4rem, 1.05rem + 1.1vw, 1.95rem);
    line-height: 1.28;
    text-align: left;
}

/* part titles (h3) a step smaller than the section titles (h2) */
.cs-case-block h3.cs-title {
    font-size: clamp(1.3rem, 1rem + 0.85vw, 1.7rem);
}

/* keep the title clear of the faint corner number */
.cs-case-block:has(.cs-case-block__step) .cs-title {
    max-width: calc(100% - 84px);
}

/* service tag + label on one line */
.cs-case-block__labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 12px;
}

.cs-case-block__labels .cs-eyebrow {
    margin: 0;
}

.cs-case-block__text {
    margin: 12px 0 0;
    color: var(--cs-c-text, #73777a);
    font-size: var(--cs-fs-subtext, 1rem);
    line-height: 1.75;
}

.cs-case-block__text + .cs-case-block__text {
    margin-top: 10px;
}

.cs-case-block__subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 14px;
    padding-top: 18px;
    scroll-margin-top: var(--cb-sticky-top);
    color: var(--cs-c-title, #393939);
    font-size: var(--cs-fs-card-title, 1.15rem);
    font-weight: 700;
    border-top: 1px dashed var(--cb-line);
}

.cs-case-block__subtitle i {
    color: var(--cb-blue);
    font-size: 0.95em;
}

#business-challenges .cs-case-block__subtitle i {
    color: var(--cb-amber);
}

/* ---------- 7.5 Index card ---------- */
.cs-case-index {
    position: sticky;
    top: var(--cb-sticky-top);
}

/* only the section being read shows its sub-links (set by the script) */
.cs-case-index__list[data-collapse] > li:not(.is-open) .cs-case-index__sublist {
    display: none;
}

.cs-case-index__card {
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(8, 72, 112, 0.08);
}

.cs-case-index__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-case-index__head-icon {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    font-size: 15px;
    background: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
    border-radius: 13px;
}

.cs-case-index__title {
    margin: 0;
    color: var(--cs-c-title, #393939);
    font-size: 1rem;
    font-weight: 700;
}

.cs-case-index__sub {
    margin: 2px 0 0;
    color: #8a96a0;
    font-size: 13px;
}

/* reading progress */
.cs-case-index__progress {
    height: 4px;
    margin: 14px 0 10px;
    overflow: hidden;
    background: var(--cb-ice);
    border-radius: 4px;
}

.cs-case-index__progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--cb-cyan), var(--cb-blue));
    border-radius: inherit;
    transition: width 0.2s linear;
}

.cs-case-index__list {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* laptops and desktops: if the list is taller than the screen, it scrolls inside */
/* laptops and desktops: index + enquiry card always fit the screen; the list
   scrolls inside when it is taller than the space left */
@media (min-width: 992px) {
    .cs-case-index {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - var(--cb-sticky-top) - 16px);
    }

    .cs-case-index__card {
        display: flex;
        flex: 0 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    .cs-case-index__list {
        flex: 1 1 auto;
        min-height: 120px;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    .cs-case-index__cta {
        flex: 0 0 auto;
    }
}

/* the line joining the numbers */
.cs-case-index__list::before {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 23px;
    width: 1px;
    background: var(--cb-line);
    content: "";
}

.cs-case-index__list > li + li {
    margin-top: 2px;
}

.cs-case-index__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    color: #4d5b66;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 14px;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.cs-case-index__num {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--cb-blue);
    font-size: 11.5px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #cfe4f0;
    border-radius: 50%;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.cs-case-index__link:hover {
    color: var(--cb-blue);
    background: var(--cb-ice);
}

/* the section being read */
.cs-case-index__link.is-active {
    color: var(--cb-blue);
    background: var(--cb-ice);
}

.cs-case-index__link.is-active .cs-case-index__num,
.cs-case-index__link.is-done .cs-case-index__num {
    color: #ffffff;
    background: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
    border-color: transparent;
}

.cs-case-index__sublist {
    margin: 0 0 4px;
    padding: 0 0 0 48px;
    list-style: none;
}

.cs-case-index__sublist a {
    position: relative;
    display: block;
    padding: 3px 0 3px 14px;
    color: #7a8792;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.cs-case-index__sublist a::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    background: #cfe4f0;
    border-radius: 50%;
    transform: translateY(-50%);
    content: "";
}

.cs-case-index__sublist a:hover {
    color: var(--cb-blue);
}

/* the part being read */
.cs-case-index__sublist a.is-active {
    color: var(--cb-blue);
    font-weight: 600;
}

.cs-case-index__sublist a.is-active::before {
    background: var(--cb-blue);
    box-shadow: 0 0 0 3px rgba(8, 112, 175, 0.15);
}

.cs-case-index__link:focus-visible,
.cs-case-index__sublist a:focus-visible {
    outline: 2px solid var(--cb-cyan);
    outline-offset: 2px;
}

/* ---------- 7.6 Enquiry card under the index ---------- */
.cs-case-index__cta {
    position: relative;
    margin-top: 14px;
    padding: 18px 20px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #063f66 0%, #0870af 60%, #159dd3 100%);
    border-radius: 22px;
}

.cs-case-index__cta::after {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.05);
    content: "";
}

.cs-case-index__cta-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.cs-case-index__cta-text {
    margin: 4px 0 12px;
    color: rgba(235, 246, 252, 0.86);
    font-size: 14px;
    line-height: 1.6;
}

/* short laptop screens: a slimmer enquiry card */
@media (min-width: 992px) and (max-height: 860px) {
    .cs-case-index__card {
        padding: 14px;
    }

    .cs-case-index__cta {
        margin-top: 10px;
        padding: 14px 16px;
    }

    .cs-case-index__cta-text {
        display: none;
    }

    .cs-case-index__cta-title {
        margin-bottom: 10px;
        font-size: 0.98rem;
    }
}

/* ---------- 7.7 Tablets and phones ---------- */

/* index on top, not sticky; sections 2 a row */
@media (max-width: 991.98px) {
    .cs-case-body {
        --cb-sticky-top: 96px;
    }

    .cs-case-index {
        position: static;
    }

    .cs-case-index__card {
        padding: 18px;
    }

    .cs-case-index__progress,
    .cs-case-index__sublist,
    .cs-case-index__list::before,
    .cs-case-index__cta {
        display: none;
    }

    .cs-case-index__head {
        margin-bottom: 14px;
    }

    .cs-case-index__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .cs-case-index__list > li + li {
        margin-top: 0;
    }

    .cs-case-index__link {
        height: 100%;
        padding: 10px;
        font-size: 14px;
        background: #f7fbfe;
        border: 1px solid var(--cb-line);
    }
}

@media (max-width: 767.98px) {
    

    .cs-case-block .cs-title {
        max-width: 100%;
    }

    .cs-case-block__step {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .cs-case-block {
        padding: 24px 18px;
        border-radius: 20px;
    }

    

    /* the 3 index links stacked */
    .cs-case-index__list {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-case-index__link,
.cs-case-index__num,
.cs-case-index__progress span {
        transition: none;
    }
}

/* =====================================================================
   8. SERVICE CARDS (04 Website Design & Development, and the services after it)
   Markup: inside the left column of .cs-case-body, as .cs-case-block cards
   Script: assets/js/pages/portfolio-details.js (device tabs, pages slider, copy codes)

   8.1  Service intro card
   8.2  Device tabs (desktop, laptop, tablet, mobile)
   8.3  Website pages slider
   8.4  Typography and colour palette
   8.5  Technology tiles (they run in a strip: 13.4)
   8.6  Note line
   8.7  Summary call to action
   8.8  Screenshot placeholder
   8.9  Tablets and phones
   8.10 Reduced motion
   ===================================================================== */

/* ---------- 8.1 Service intro card ---------- */

/* first card of a service: a thin brand line along the top */
.cs-case-block--service {
    overflow: hidden;
}

.cs-case-block--service::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cb-cyan), var(--cb-blue));
    content: "";
}

.cs-case-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
    border-radius: 999px;
}

.cs-case-service-tag i {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: var(--cb-blue);
    font-size: 10px;
    background: #ffffff;
    border-radius: 50%;
}

.cs-case-block__subtitle small {
    margin-left: auto;
    color: #8a96a0;
    font-size: 12.5px;
    font-weight: 500;
}

/* ---------- 8.2 Device tabs ---------- */
.cs-devices {
    margin-top: 26px;
}

.cs-devices__tabs {
    display: flex;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 18px;
    padding: 5px;
    background: #f2f8fc;
    border: 1px solid var(--cb-line);
    border-radius: 999px;
}

.cs-devices__tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    color: #5b6670;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.cs-devices__tab:hover {
    color: var(--cb-blue);
}

.cs-devices__tab.is-active {
    color: #ffffff;
    background: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
    box-shadow: 0 8px 18px rgba(8, 112, 175, 0.25);
}

.cs-devices__tab:focus-visible {
    outline: 2px solid var(--cb-cyan);
    outline-offset: 2px;
}

/* the stage: a soft light-blue floor the device stands on */
.cs-devices__stage {
    position: relative;
    padding: clamp(22px, 3vw, 34px) clamp(14px, 2.4vw, 28px) 20px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 50% 40%, rgba(199, 232, 252, 0.75), transparent 75%),
        linear-gradient(180deg, #f7fbfe, #eef6fb);
    border: 1px solid var(--cb-line);
    border-radius: 22px;
}

.cs-devices__panel {
    animation: csDevIn 0.45s ease both;
}

.cs-devices__panel[hidden] {
    display: none;
}

@keyframes csDevIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.cs-device {
    position: relative;
    margin: 0 auto;
}

.cs-device__screen {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 10px solid #1d2329;
    box-shadow: 0 26px 46px -22px rgba(6, 38, 63, 0.45);
}

/* desktop monitor on a stand */
.cs-device--desktop {
    width: 80%;
}

.cs-device--desktop .cs-device__screen {
    aspect-ratio: 16 / 9.4;
    border-radius: 14px;
}

.cs-device__stand {
    position: relative;
    display: block;
    width: 14%;
    height: 34px;
    margin: 0 auto 8px;
}

/* the neck */
.cs-device__stand::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #b8c0c7, #d6dce1);
    clip-path: polygon(22% 0, 78% 0, 88% 100%, 12% 100%);
    content: "";
}

/* the foot */
.cs-device__stand::after {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 260%;
    height: 8px;
    background: linear-gradient(180deg, #d6dce1, #a9b2ba);
    border-radius: 8px;
    transform: translateX(-50%);
    content: "";
}

/* laptop */
.cs-device--laptop {
    width: 82%;
}

.cs-device--laptop .cs-device__screen {
    aspect-ratio: 16 / 10;
    border-width: 10px 10px 14px;
    border-radius: 14px 14px 4px 4px;
}

.cs-device__base {
    position: relative;
    display: block;
    height: 14px;
    margin: 0 -8%;
    background: linear-gradient(180deg, #e2e6ea, #a9b2ba);
    border-radius: 0 0 14px 14px;
}

.cs-device__base::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 16%;
    height: 5px;
    background: #8c969f;
    border-radius: 0 0 6px 6px;
    transform: translateX(-50%);
    content: "";
}

/* tablet */
.cs-device--tablet {
    width: min(46%, 340px);
}

.cs-device--tablet .cs-device__screen {
    aspect-ratio: 3 / 4;
    border-width: 12px;
    border-radius: 24px;
}

/* mobile */
.cs-device--mobile {
    width: min(28%, 220px);
}

.cs-device--mobile .cs-device__screen {
    aspect-ratio: 9 / 19;
    border-width: 8px;
    border-radius: 28px;
}

.cs-device--mobile .cs-device__screen::before {
    position: absolute;
    z-index: 2;
    top: 6px;
    left: 50%;
    width: 32%;
    height: 10px;
    background: #1d2329;
    border-radius: 6px;
    transform: translateX(-50%);
    content: "";
}

/* the screenshot scrolls down the page and back up; pauses on hover */
.cs-device__shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
    animation: csDevScroll 28s ease-in-out infinite alternate;
}

.cs-device--tablet .cs-device__shot {
    animation-duration: 36s;
}

.cs-device--mobile .cs-device__shot {
    animation-duration: 50s;
}

.cs-device:hover .cs-device__shot {
    animation-play-state: paused;
}

@keyframes csDevScroll {
    0%,
    6% {
        object-position: 50% 0;
    }

    94%,
    100% {
        object-position: 50% 100%;
    }
}

.cs-devices__caption {
    max-width: 520px;
    margin: 22px auto 0;
    color: #4d5b66;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.cs-devices__caption strong {
    color: var(--cb-blue);
}

/* ---------- 8.3 Website pages slider ---------- */
.cs-pages {
    margin-top: 26px;
}

.cs-pages__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.cs-pages__count {
    color: #8a96a0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.cs-pages__count b {
    color: var(--cb-blue);
    font-size: 1.15rem;
}

.cs-pages__nav {
    display: flex;
    gap: 8px;
}

.cs-pages__arrow {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: var(--cb-blue);
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #cfe4f0;
    border-radius: 50%;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.cs-pages__arrow:hover {
    color: #ffffff;
    background: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
    border-color: transparent;
}

.cs-pages__arrow.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.cs-pages__arrow:focus-visible {
    outline: 2px solid var(--cb-cyan);
    outline-offset: 2px;
}

.cs-page-card {
    margin: 0;
}

/* tall page screenshot: shows the top, scrolls to the bottom on hover */
.cs-page-card__screen {
    position: relative;
    aspect-ratio: 4 / 3.2;
    overflow: hidden;
    background: var(--cb-ice);
    border: 1px solid var(--cb-line);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(8, 72, 112, 0.08);
}

.cs-page-card__shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
    transition: object-position 6s ease-in-out;
}

.cs-page-card:hover .cs-page-card__shot {
    object-position: 50% 100%;
}

.cs-page-card__url {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 20px);
    padding: 5px 11px;
    overflow: hidden;
    color: #33475a;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(6, 38, 63, 0.15);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.cs-page-card__url i {
    color: #28a745;
    font-size: 9px;
}

.cs-page-card figcaption {
    padding: 14px 4px 0;
}

.cs-page-card figcaption strong {
    display: block;
    color: var(--cs-c-title, #393939);
    font-size: 1.05rem;
    font-weight: 700;
}

.cs-page-card figcaption span {
    display: block;
    margin-top: 4px;
    color: var(--cs-c-text, #73777a);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---------- 8.4 Typography and colour palette ---------- */
.cs-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.cs-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 14px;
    text-align: center;
    background: #fbfdfe;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.cs-type-card:hover {
    box-shadow: 0 14px 30px rgba(8, 72, 112, 0.1);
    transform: translateY(-4px);
}

.cs-type-card__aa {
    margin-bottom: 10px;
    color: var(--cb-blue);
    font-family: "Poppins", var(--cs-font, "Inter"), sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: var(--type-weight, 400);
    line-height: 1;
}

.cs-type-card strong {
    color: var(--cs-c-title, #393939);
    font-size: 1rem;
    font-weight: 700;
}

.cs-type-card__weight {
    margin-top: 2px;
    color: var(--cb-blue);
    font-size: 13px;
    font-weight: 600;
}

.cs-type-card__use {
    margin-top: 8px;
    padding: 3px 10px;
    color: #5b6670;
    font-size: 12px;
    background: var(--cb-ice);
    border-radius: 999px;
}

.cs-colour-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.cs-colour-card {
    padding: 8px 8px 12px;
    background: #fbfdfe;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.cs-colour-card:hover {
    box-shadow: 0 14px 30px rgba(8, 72, 112, 0.1);
    transform: translateY(-4px);
}

.cs-colour-card__swatch {
    display: block;
    height: 78px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.cs-colour-card > strong {
    display: block;
    padding: 0 6px;
    color: var(--cs-c-title, #393939);
    font-size: 0.98rem;
    font-weight: 700;
}

.cs-colour-card__use {
    display: block;
    padding: 0 6px;
    color: #8a96a0;
    font-size: 12px;
}

.cs-colour-card__codes {
    display: grid;
    gap: 4px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.cs-colour-card__codes button {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 5px 6px;
    color: var(--cs-c-title, #393939);
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cs-colour-card__codes button:hover {
    background: var(--cb-ice);
}

.cs-colour-card__codes button:focus-visible {
    outline: 2px solid var(--cb-cyan);
    outline-offset: 1px;
}

.cs-colour-card__fmt {
    flex: 0 0 26px;
    color: var(--cb-blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.cs-colour-card__val {
    min-width: 0;
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cs-colour-card__codes button.is-copied {
    background: #e7f7ec;
}

.cs-colour-card__codes button.is-copied .cs-colour-card__val::after {
    margin-left: 6px;
    color: #1f9d55;
    font-family: var(--cs-font, "Inter"), sans-serif;
    font-weight: 600;
    content: "Copied";
}

/* ---------- 8.5 Technology tiles ---------- */

.cs-tech-tile {
    --tc: var(--cb-blue);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 8px 14px;
    text-align: center;
    background: #fbfdfe;
    border: 1px solid var(--cb-line);
    border-radius: 16px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.cs-tech-tile:hover {
    border-color: color-mix(in srgb, var(--tc) 35%, #ffffff);
    box-shadow: 0 14px 28px rgba(8, 72, 112, 0.1);
    transform: translateY(-4px);
}

.cs-tech-tile__logo {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--tc);
    font-size: 24px;
    background: color-mix(in srgb, var(--tc) 10%, #ffffff);
    border-radius: 15px;
}

.cs-tech-tile__logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.cs-tech-tile__name {
    color: var(--cs-c-title, #393939);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
}

/* ---------- 8.6 Note line ---------- */

.cs-case-note-line {
    display: flex;
    gap: 10px;
    margin: 22px 0 0;
    padding: 12px 16px;
    color: #5b6670;
    font-size: 0.86rem;
    line-height: 1.6;
    background: #f7fafc;
    border: 1px dashed #cfe0ea;
    border-radius: 12px;
}

.cs-case-note-line i {
    margin-top: 3px;
    color: var(--cb-blue);
}

/* ---------- 8.7 Summary call to action ---------- */
.cs-case-cta {
    position: relative;
    /*display: flex;*/
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 26px;
    padding: 24px 26px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, #063f66 0%, #0870af 60%, #159dd3 100%);
    border-radius: 20px;
}

.cs-case-cta::after {
    position: absolute;
    top: -60px;
    right: -40px;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.05);
    pointer-events: none;
    content: "";
}

.cs-case-cta__text strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
}

.cs-case-cta__text span {
    display: block;
    margin-top: 6px;
    color: rgba(235, 246, 252, 0.88);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cs-case-cta .cs-btn {
    margin-top:12px;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

/* ---------- 8.8 Screenshot placeholder (until an image is added) ---------- */
.cs-shot-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    min-height: 110px;
    color: #8fb3c9;
    text-align: center;
    background:
        repeating-linear-gradient(135deg, transparent 0 12px, rgba(8, 112, 175, 0.04) 12px 24px),
        #f2f8fc;
}

.cs-shot-ph i {
    font-size: 22px;
}

.cs-shot-ph small {
    font-size: 11px;
    line-height: 1.5;
}

/* ---------- 8.9 Tablets and phones ---------- */

/* narrower content column: colours 2 a row */
@media (max-width: 1199.98px) {
    .cs-colour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* laptops (992–1199px): the content column is narrow */
@media (min-width: 992px) and (max-width: 1199.98px) {
    

    

    .cs-devices__tab {
        padding: 8px 13px;
        font-size: 13px;
    }
}

@media (max-width: 767.98px) {
    

    .cs-devices__tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        border-radius: 16px;
    }

    .cs-devices__tab {
        flex-direction: column;
        gap: 4px;
        padding: 8px 4px;
        font-size: 12px;
        border-radius: 12px;
    }

    .cs-device--desktop,
    .cs-device--laptop {
        width: 92%;
    }

    .cs-device--tablet {
        width: 62%;
    }

    .cs-device--mobile {
        width: 44%;
    }

    .cs-colour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    

    .cs-case-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .cs-type-grid {
        grid-template-columns: 1fr;
    }

    .cs-type-card {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 2px 16px;
        align-items: center;
        text-align: left;
    }

    .cs-type-card__aa {
        grid-row: span 3;
        margin: 0;
    }

    .cs-type-card__use {
        justify-self: start;
        margin-top: 6px;
    }

    .cs-device__screen {
        border-width: 7px;
    }

    .cs-device--laptop .cs-device__screen {
        border-width: 7px 7px 10px;
    }

    .cs-device--mobile .cs-device__screen {
        border-width: 6px;
        border-radius: 22px;
    }

    /* colours: one a row, swatch on the left */
    .cs-colour-grid {
        grid-template-columns: 1fr;
    }

    .cs-colour-card {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 2px 14px;
        align-items: start;
    }

    .cs-colour-card__swatch {
        grid-row: span 3;
        height: 100%;
        min-height: 84px;
        margin: 0;
    }

    .cs-colour-card > strong,
    .cs-colour-card__use {
        padding: 0;
    }

    .cs-colour-card__codes {
        margin-top: 6px;
    }

    /* technology: 2 a row, logo beside the name */
    

    .cs-tech-tile {
        flex-direction: row;
        padding: 10px 12px;
        text-align: left;
    }

    .cs-tech-tile__logo {
        width: 42px;
        height: 42px;
        font-size: 19px;
        border-radius: 12px;
    }

    .cs-case-cta {
        padding: 20px;
    }

    .cs-case-cta .cs-btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* ---------- 8.10 Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .cs-device__shot,
    .cs-devices__panel {
        animation: none;
    }

    .cs-page-card__shot,
.cs-type-card,
.cs-colour-card,
.cs-tech-tile,
.cs-devices__tab {
        transition: none;
    }
}

/* =====================================================================
   9. SEO & AI SEARCH OPTIMISATION (service 02 cards)
   Markup: #seo-ai-search, #seo-performance, #seo-growth, #seo-keywords,
   #seo-tools (uses .cs-tech-grid from section 8), #seo-reports

   9.2 Report screenshot
   9.3 Four metric tiles
   9.4 Monthly growth chart (see 9.8)
   9.5 Keyword rankings table
   9.6 Report highlight cards (2 a row)
   9.7 Tablets and phones
   9.8 Monthly growth chart (last 3 months, one tab per measure)
   ===================================================================== */

/* ---------- 9.2 Report screenshot ---------- */

.cs-seo-report {
    margin: 0;
    padding: 8px;
    background: #fbfdfe;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
}

.cs-seo-report__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 0;
    border-radius: 12px;
}

.cs-seo-report .cs-shot-ph {
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: 12px;
}

/* ---------- 9.3 Four metric tiles (under the report) ---------- */
.cs-seo-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 0;
}

.cs-seo-metric {
    --mc: var(--cb-blue);

    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 18px;
    overflow: hidden;
    color: #ffffff;
    background: var(--mc);
    border-radius: 16px;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--mc) 30%, transparent);
}

/* soft circle in the corner */
.cs-seo-metric::after {
    position: absolute;
    top: -26px;
    right: -26px;
    width: 86px;
    height: 86px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.cs-seo-metric__icon {
    display: grid;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    place-items: center;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.cs-seo-metric__value {
    font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.85rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cs-seo-metric__label {
    margin-top: 6px;
    font-size: 0.92rem;
    font-weight: 700;
}

.cs-seo-metric__note {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.4;
}

/* ---------- 9.5 Keyword rankings table ---------- */
.cs-seo-kw {
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--cb-line);
    border-radius: 16px;
}

.cs-seo-kw__row {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) 0.8fr minmax(0, 1.6fr);
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    transition: background 0.2s ease;
}

.cs-seo-kw__row + .cs-seo-kw__row {
    border-top: 1px solid var(--cb-line);
}

.cs-seo-kw__row:not(.cs-seo-kw__row--head):hover {
    background: #f7fbfe;
}

.cs-seo-kw__row--head {
    color: #7a8792;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #f4f8fb;
}

.cs-seo-kw__term {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--cs-c-title, #393939);
    font-size: 0.95rem;
    font-weight: 600;
}

.cs-seo-kw__term i {
    display: grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--cb-blue);
    font-size: 12px;
    background: var(--cb-ice);
    border-radius: 9px;
}

.cs-seo-kw__badge {
    display: inline-grid;
    min-width: 42px;
    padding: 4px 10px;
    place-items: center;
    color: var(--cb-blue);
    font-size: 0.92rem;
    font-weight: 800;
    background: var(--cb-ice);
    border: 1px solid #cfe4f0;
    border-radius: 999px;
}

/* position 1: green */
.cs-seo-kw__badge.is-top {
    color: #ffffff;
    background: linear-gradient(135deg, #1f9d55, #16a34a);
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(31, 157, 85, 0.3);
}

.cs-seo-kw__vol {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-seo-kw__vol b {
    min-width: 48px;
    color: var(--cs-c-title, #393939);
    font-size: 0.95rem;
}

.cs-seo-kw__bar {
    flex: 1;
    height: 8px;
    overflow: hidden;
    background: #e8f1f7;
    border-radius: 8px;
}

.cs-seo-kw__bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--cb-cyan), var(--cb-blue));
    border-radius: inherit;
}

/* ---------- 9.6 Report highlight cards ---------- */
.cs-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
    margin-top: 22px;
}

/* report screenshots are wide: 16:10 and no scroll on hover */
.cs-page-card__screen--report {
    aspect-ratio: 16 / 10;
}

.cs-page-card__screen--report .cs-page-card__shot {
    transition: transform 0.5s ease;
}

.cs-page-card:hover .cs-page-card__screen--report .cs-page-card__shot {
    object-position: 50% 0;
    transform: scale(1.04);
}

/* ---------- 9.7 Tablets and phones ---------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .cs-seo-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    
}

@media (max-width: 767.98px) {
    

    .cs-seo-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cs-report-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    /* keywords: search on its own line, position and searches below */
    .cs-seo-kw__row--head {
        display: none;
    }

    .cs-seo-kw__row {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px 14px;
        padding: 14px 16px;
    }

    .cs-seo-kw__term {
        grid-column: 1 / -1;
    }

    .cs-seo-metric {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-page-card__screen--report .cs-page-card__shot {
        transition: none;
    }
}

/* ---------- 9.8 Monthly growth chart (#seo-growth) ----------
   Tabs pick the measure; each panel shows the period total, the change
   from the first to the last month, and one bar per month. */
.cs-seo-chart {
    margin-top: 20px;
    padding: 16px 18px 18px;
    background: #fbfdfe;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
}

.cs-seo-chart__tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: #eef4f8;
    border-radius: 14px;
}

.cs-seo-chart__tab {
    --mc: var(--cb-blue);

    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    color: #4d5b66;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.cs-seo-chart__tab i {
    color: var(--mc);
    font-size: 13px;
    transition: color 0.25s ease;
}

.cs-seo-chart__tab:hover {
    background: rgba(255, 255, 255, 0.75);
}

.cs-seo-chart__tab.is-active {
    color: #ffffff;
    background: var(--mc);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--mc) 32%, transparent);
}

.cs-seo-chart__tab.is-active i {
    color: #ffffff;
}

.cs-seo-chart__tab:focus-visible {
    outline: 2px solid var(--cb-cyan);
    outline-offset: 2px;
}

.cs-seo-chart__panel {
    --mc: var(--cb-blue);

    padding-top: 18px;
}

.cs-seo-chart__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 34px;
}

.cs-seo-chart__label {
    display: block;
    color: #7a8792;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cs-seo-chart__total {
    display: block;
    margin-top: 4px;
    color: var(--mc);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cs-seo-chart__trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 999px;
}

.cs-seo-chart__trend small {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
}

.cs-seo-chart__trend.is-up,
.cs-seo-chart__x em.is-up {
    color: #15803d;
    background: #e7f6ec;
}

.cs-seo-chart__trend.is-down,
.cs-seo-chart__x em.is-down {
    color: #c2410c;
    background: #fff0e6;
}

.cs-seo-chart__trend.is-flat,
.cs-seo-chart__x em.is-flat {
    color: #64748b;
    background: #f1f5f9;
}

/* plot: gridlines with axis labels on the left, bars on top */
.cs-seo-chart__plot {
    position: relative;
    height: 230px;
    margin-left: 44px;
}

.cs-seo-chart__grid {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.cs-seo-chart__grid span {
    position: relative;
    height: 0;
    border-top: 1px dashed #dde7ee;
}

.cs-seo-chart__grid span:last-child {
    border-top: 1px solid #c9d6e0;
}

.cs-seo-chart__grid span::before {
    position: absolute;
    top: -8px;
    right: calc(100% + 10px);
    color: #94a3b0;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    content: attr(data-v);
}

.cs-seo-chart__cols {
    position: absolute;
    inset: 0;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    align-items: end;
}

.cs-seo-chart__col {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.cs-seo-chart__bar {
    position: relative;
    width: min(64px, 46%);
    height: var(--h);
    background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 45%, #ffffff), color-mix(in srgb, var(--mc) 70%, #ffffff));
    border-radius: 10px 10px 4px 4px;
    transform-origin: bottom;
    animation: csBarGrow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* the latest month in full colour */
.cs-seo-chart__bar.is-last {
    background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 75%, #ffffff), var(--mc));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--mc) 30%, transparent);
}

.cs-seo-chart__col:nth-child(2) .cs-seo-chart__bar {
    animation-delay: 0.08s;
}

.cs-seo-chart__col:nth-child(3) .cs-seo-chart__bar {
    animation-delay: 0.16s;
}

.cs-seo-chart__bar b {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    color: var(--cs-c-title, #393939);
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    transform: translateX(-50%);
}

/* no figures yet: striped bars */
.cs-seo-chart__bar.is-empty {
    background: repeating-linear-gradient(135deg, #eef3f7 0 6px, #e3ebf1 6px 12px);
    box-shadow: none;
}

.cs-seo-chart__bar.is-empty b {
    color: #94a3b0;
}

@keyframes csBarGrow {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

/* month names + change from the month before */
.cs-seo-chart__x {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    margin: 12px 0 0 44px;
    text-align: center;
}

.cs-seo-chart__x span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.cs-seo-chart__x strong {
    color: var(--cs-c-title, #393939);
    font-size: 0.9rem;
    font-weight: 700;
}

.cs-seo-chart__x em {
    padding: 2px 8px;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    border-radius: 999px;
}

.cs-seo-chart__note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 0;
    color: #7a8792;
    font-size: 13px;
    line-height: 1.5;
}

.cs-seo-chart__note i {
    margin-top: 2px;
    color: var(--mc);
}

@media (max-width: 575.98px) {
    .cs-seo-chart {
        padding: 12px 12px 16px;
    }

    .cs-seo-chart__tabs {
        flex-wrap: wrap;
    }

    .cs-seo-chart__tab {
        flex: 1 1 calc(50% - 3px);
        padding: 9px 10px;
        font-size: 0.86rem;
    }

    .cs-seo-chart__plot {
        height: 190px;
        margin-left: 36px;
    }

    .cs-seo-chart__x {
        margin-left: 36px;
    }

    .cs-seo-chart__bar {
        width: min(52px, 56%);
    }

    .cs-seo-chart__bar b {
        font-size: 0.8rem;
    }

    .cs-seo-chart__x strong {
        font-size: 0.8rem;
    }

    .cs-seo-chart__x em {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-seo-chart__bar {
        animation: none;
    }

    .cs-seo-chart__tab {
        transition: none;
    }
}

/* =====================================================================
   10. SOCIAL MEDIA MARKETING (service 03 cards)
   Markup: #social-media, #sm-challenges, #sm-strategy, #sm-creatives,
   #sm-platforms, #sm-performance (uses .cs-seo-metric and the chart
   labels from section 9), #sm-before-after, #sm-impact

   10.1 Headline figures (intro)
   10.3 Process steps (also Google Business Profile)
   10.4 Poster cards
   10.5 Video cards
   10.6 Platform management cards + platform overview table
   10.7 Monthly audience growth chart + dashboard
   10.8 Before & after
   10.10 Tablets and phones
   ===================================================================== */

/* a subtitle straight under the card title: no divider line above */
.cs-case-block__subtitle--flush {
    margin-top: 18px;
    padding-top: 0;
    border-top: 0;
}

/* ---------- 10.1 Headline figures ---------- */
.cs-sm-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.cs-sm-kpi {
    --kc: var(--cb-blue);

    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, color-mix(in srgb, var(--kc) 9%, #ffffff), #ffffff 70%);
    border: 1px solid color-mix(in srgb, var(--kc) 18%, #e3edf3);
    border-radius: 16px;
}

.cs-sm-kpi__icon {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    font-size: 16px;
    background: var(--kc);
    border-radius: 13px;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--kc) 28%, transparent);
}

.cs-sm-kpi__text {
    min-width: 0;
    line-height: 1.2;
}

.cs-sm-kpi__text strong {
    display: block;
    color: var(--cs-c-title, #393939);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cs-sm-kpi__text span {
    display: block;
    margin-top: 3px;
    color: var(--cs-c-text, #73777a);
    font-size: 0.82rem;
    font-weight: 600;
}

/* ---------- 10.3 Process steps ---------- */
.cs-sm-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.cs-sm-step {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: #fbfdfe;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.cs-sm-step:hover {
    border-color: #b9dcef;
    box-shadow: 0 14px 28px rgba(8, 72, 112, 0.1);
    transform: translateY(-3px);
}

.cs-sm-step__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.cs-sm-step__num {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    background: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(8, 112, 175, 0.28);
}

.cs-sm-step__icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--cb-blue);
    font-size: 16px;
    background: var(--cb-ice);
    border-radius: 12px;
}

.cs-sm-step__title {
    color: var(--cs-c-title, #393939);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}

.cs-sm-step__text {
    margin-top: 6px;
    color: var(--cs-c-text, #73777a);
    font-size: 0.86rem;
    line-height: 1.6;
}

/* ---------- 10.4 Poster cards ---------- */

/* room for card shadows inside the slider */

/* autoplay progress line under a slider */

/* poster cards: poster with its title and description below */
.cs-poster-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
    transition: box-shadow 0.3s ease;
}

.cs-poster-card:hover {
    box-shadow: 0 16px 30px rgba(8, 72, 112, 0.1);
}

.cs-poster-card__media {
    margin: 10px 10px 0;
    overflow: hidden;
    background: #eef3f7;
    border-radius: 12px;
}

.cs-poster-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cs-poster-card:hover .cs-poster-card__img {
    transform: scale(1.04);
}

.cs-poster-card__media .cs-shot-ph {
    aspect-ratio: 4 / 5;
    height: auto;
    border-radius: 0;
}

.cs-poster-card figcaption {
    padding: 12px 14px 16px;
}

.cs-poster-card figcaption strong {
    display: block;
    color: var(--cs-c-title, #393939);
    font-size: 0.95rem;
    font-weight: 700;
}

.cs-poster-card figcaption span {
    display: block;
    margin-top: 3px;
    color: var(--cs-c-text, #73777a);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ---------- 10.5 Card text (posters / videos) ---------- */

.cs-video__body {
    padding: 12px 14px 16px;
}

.cs-video__body strong {
    display: block;
    color: var(--cs-c-title, #393939);
    font-size: 0.95rem;
    font-weight: 700;
}

.cs-video__body span {
    display: block;
    margin-top: 3px;
    color: var(--cs-c-text, #73777a);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* video cards */
.cs-video {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
    transition: box-shadow 0.3s ease;
}

.cs-video:hover {
    box-shadow: 0 16px 30px rgba(8, 72, 112, 0.1);
}

.cs-video__media {
    position: relative;
    aspect-ratio: 9 / 14;
    overflow: hidden;
    background: #0f172a;
}

/* soft shade at the bottom so the badges stay readable */
.cs-video__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), transparent 30%, transparent 60%, rgba(15, 23, 42, 0.55));
    pointer-events: none;
    content: "";
}

.cs-video__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cs-video:hover .cs-video__img {
    transform: scale(1.04);
}

.cs-video__media .cs-shot-ph {
    position: absolute;
    inset: 0;
    height: 100%;
    border-radius: 0;
}

.cs-video__play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    padding: 0 0 0 3px;
    place-items: center;
    color: var(--cb-blue);
    font-size: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 0;
    border-radius: 50%;
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.25),
        0 12px 26px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.cs-video__play:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.cs-video__play:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.cs-video__badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.55);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.cs-video__time {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    padding: 3px 8px;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 6px;
}

/* playing: the player covers the card media */
.cs-video__player {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    border: 0;
}

.cs-video__media.is-playing::after,
.cs-video__media.is-playing .cs-video__play,
.cs-video__media.is-playing .cs-video__badge,
.cs-video__media.is-playing .cs-video__time {
    display: none;
}

/* ---------- 10.6 Platform management cards ---------- */
.cs-sm-manage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.cs-sm-manage__item {
    --pc: var(--cb-blue);

    position: relative;
    padding: 18px;
    overflow: hidden;
    background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 7%, #ffffff), #ffffff 60%);
    border: 1px solid var(--cb-line);
    border-radius: 18px;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.cs-sm-manage__item::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--pc);
    content: "";
}

.cs-sm-manage__item:hover {
    border-color: color-mix(in srgb, var(--pc) 35%, #ffffff);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--pc) 14%, transparent);
}

.cs-sm-manage__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.cs-sm-manage__icon {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #ffffff;
    font-size: 19px;
    background: var(--pc);
    border-radius: 13px;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--pc) 28%, transparent);
}

.cs-sm-manage__item--instagram .cs-sm-manage__icon,
.cs-sm-manage__item--instagram::before {
    background: linear-gradient(45deg, #f9a825, #e4405f 45%, #c13584 70%, #833ab4);
}

.cs-sm-manage__head strong {
    flex: 1;
    color: var(--cs-c-title, #393939);
    font-size: var(--cs-fs-card-title, 1.15rem);
    font-weight: 700;
}

.cs-sm-manage__link {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--pc);
    font-size: 12px;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 50%;
}

.cs-sm-manage__label {
    display: block;
    margin-bottom: 8px;
    color: #8a96a0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.cs-sm-manage__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cs-sm-manage__tags li {
    padding: 5px 11px;
    color: color-mix(in srgb, var(--pc) 80%, #1e293b);
    font-size: 0.82rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--pc) 9%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--pc) 20%, #ffffff);
    border-radius: 999px;
}

/* platform overview table */
.cs-sm-overview {
    overflow: hidden;
    border: 1px solid var(--cb-line);
    border-radius: 16px;
}

.cs-sm-overview__row {
    --pc: var(--cb-blue);

    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 0.7fr minmax(0, 1.7fr);
    gap: 14px;
    align-items: center;
    padding: 13px 18px;
    transition: background 0.2s ease;
}

.cs-sm-overview__row + .cs-sm-overview__row {
    border-top: 1px solid var(--cb-line);
}

.cs-sm-overview__row:not(.cs-sm-overview__row--head):not(.cs-sm-overview__row--total):hover {
    background: #f7fbfe;
}

.cs-sm-overview__row--head {
    color: #7a8792;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #f4f8fb;
}

.cs-sm-overview__name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--cs-c-title, #393939);
    font-size: 0.95rem;
    font-weight: 600;
}

.cs-sm-overview__name i {
    display: grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #ffffff;
    font-size: 13px;
    background: var(--pc);
    border-radius: 10px;
}

.cs-sm-overview__posts {
    color: var(--cs-c-title, #393939);
    font-size: 0.95rem;
    font-weight: 700;
}

.cs-sm-overview__views {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-sm-overview__views b {
    min-width: 88px;
    color: var(--cs-c-title, #393939);
    font-size: 0.95rem;
    white-space: nowrap;
}

.cs-sm-overview__bar {
    flex: 1;
    height: 8px;
    overflow: hidden;
    background: #e8f1f7;
    border-radius: 8px;
}

.cs-sm-overview__bar i {
    display: block;
    height: 100%;
    background: var(--pc);
    border-radius: inherit;
}

/* total row in the brand colour */
.cs-sm-overview__row--total {
    color: #ffffff;
    background: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
}

.cs-sm-overview__row--total .cs-sm-overview__name,
.cs-sm-overview__row--total .cs-sm-overview__posts,
.cs-sm-overview__row--total .cs-sm-overview__views b {
    color: #ffffff;
    font-weight: 800;
}

.cs-sm-overview__row--total .cs-sm-overview__name i {
    background: rgba(255, 255, 255, 0.2);
}

.cs-sm-overview__row--total .cs-sm-overview__views b {
    font-size: 1.05rem;
}

/* ---------- 10.7 Monthly audience growth chart + dashboard ---------- */
.cs-sm-growth {
    margin-top: 16px;
    padding: 18px 18px 16px;
    background: #fbfdfe;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
}

.cs-sm-growth__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 30px;
}

.cs-sm-growth__value {
    display: block;
    margin-top: 4px;
    color: #1877f2;
    font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cs-sm-growth__value small {
    color: #7a8792;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0;
}

.cs-sm-growth__plot {
    position: relative;
    height: 220px;
    margin: 0 14px 0 48px;
}

.cs-sm-growth__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.cs-sm-growth__dot {
    position: absolute;
    z-index: 1;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 3px solid #1877f2;
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

.cs-sm-growth__dot b {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    padding: 3px 8px;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    background: #1e293b;
    border-radius: 6px;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.2s ease;
}

.cs-sm-growth__plot:hover .cs-sm-growth__dot b,
.cs-sm-growth__dot.is-last b {
    opacity: 1;
}

.cs-sm-growth__dot.is-last {
    width: 16px;
    height: 16px;
    background: #1877f2;
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.25);
}

.cs-sm-growth__dot.is-last b {
    background: #1877f2;
}

.cs-sm-growth__x {
    display: flex;
    justify-content: space-between;
    margin: 12px 14px 0 48px;
}

.cs-sm-growth__x span {
    width: 0;
    color: #4d5b66;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    display: flex;
    justify-content: center;
}

.cs-sm-dashboard {
    margin-top: 16px;
}

.cs-sm-dashboard figcaption {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 6px 2px;
    color: #4d5b66;
    font-size: 13px;
    font-weight: 600;
}

.cs-sm-dashboard figcaption i {
    color: #0866ff;
}

/* ---------- 10.8 Before & after ---------- */
.cs-sm-ba {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.cs-sm-ba__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.cs-sm-ba__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 12px;
}

.cs-sm-ba__label--before {
    color: #64748b;
    background: #eef2f6;
}

.cs-sm-ba__label--after {
    color: #ffffff;
    background: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
    box-shadow: 0 10px 20px rgba(8, 112, 175, 0.22);
}

.cs-sm-ba__cell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 14px;
}

.cs-sm-ba__cell i {
    display: grid;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    place-items: center;
    font-size: 12px;
    border-radius: 50%;
}

.cs-sm-ba__cell--before {
    color: #64748b;
    background: #f6f8fa;
    border: 1px dashed #d5dde5;
}

.cs-sm-ba__cell--before i {
    color: #ef4444;
    background: #fde8e8;
}

.cs-sm-ba__cell--after {
    color: var(--cs-c-title, #393939);
    background: linear-gradient(135deg, #effaf3, #f3f9fd);
    border: 1px solid #cdebd8;
}

.cs-sm-ba__cell--after i {
    color: #ffffff;
    background: #16a34a;
}

.cs-sm-ba__arrow {
    display: grid;
    place-items: center;
    color: var(--cb-blue);
    font-size: 14px;
}

.cs-sm-ba__arrow i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    background: #ffffff;
    border: 1px solid #cfe4f0;
    border-radius: 50%;
}

/* ---------- 10.10 Tablets and phones ---------- */
@media (max-width: 1199.98px) {
    .cs-sm-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .cs-sm-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .cs-sm-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cs-sm-manage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .cs-sm-kpi {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cs-sm-steps {
        grid-template-columns: 1fr;
    }

    

    

    .cs-video__media {
        aspect-ratio: 4 / 5;
    }

    /* overview: platform on its own line, posts and views below */
    .cs-sm-overview__row--head {
        display: none;
    }

    .cs-sm-overview__row {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px 16px;
        padding: 14px 16px;
    }

    .cs-sm-overview__name {
        grid-column: 1 / -1;
    }

    .cs-sm-overview__posts::before,
    .cs-sm-overview__views::before {
        display: block;
        color: #8a96a0;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .cs-sm-overview__views {
        flex-wrap: wrap;
        gap: 2px 10px;
    }

    .cs-sm-overview__views::before {
        flex: 0 0 100%;
    }

    .cs-sm-overview__views b {
        min-width: 0;
    }

    .cs-sm-overview__row--total .cs-sm-overview__posts::before,
    .cs-sm-overview__row--total .cs-sm-overview__views::before {
        color: rgba(255, 255, 255, 0.75);
    }

    .cs-sm-growth {
        padding: 14px 12px 14px;
    }

    .cs-sm-growth__plot {
        height: 180px;
        margin: 0 10px 0 40px;
    }

    .cs-sm-growth__x {
        margin: 10px 10px 0 40px;
    }

    .cs-sm-growth__x span {
        font-size: 0.78rem;
    }

    /* before & after: before above after */
    .cs-sm-ba__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .cs-sm-ba__row--head {
        grid-template-columns: 1fr 1fr;
    }

    .cs-sm-ba__row--head .cs-sm-ba__gap {
        display: none;
    }

    .cs-sm-ba__row:not(.cs-sm-ba__row--head) {
        padding: 10px;
        background: #ffffff;
        border: 1px solid var(--cb-line);
        border-radius: 16px;
    }

    .cs-sm-ba__arrow i {
        width: 28px;
        height: 28px;
        transform: rotate(90deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-sm-step,
.cs-sm-manage__item,
.cs-poster-card__img,
.cs-video__img,
.cs-video__play,
.cs-sm-growth__dot b {
        transition: none;
    }
}

/* =====================================================================
   11. PERFORMANCE MARKETING – GOOGLE ADS & META ADS (service 04 cards)
   Markup: #performance-marketing, #pm-challenges, #pm-strategy (both use
   the challenge / step cards from section 10), #pm-campaigns,
   #pm-performance (tiles + bar chart from section 9), #pm-impact

   11.1 Campaign facts + headline results (intro)
   11.2 Campaign showcase cards (2 a row)
   11.3 Monthly leads chart (6 bars)
   11.4 Before vs after table
   11.5 Tablets and phones
   ===================================================================== */

/* ---------- 11.1 Campaign facts + headline results ---------- */
.cs-pm-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.cs-pm-facts li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fbfdfe;
    border: 1px solid var(--cb-line);
    border-radius: 14px;
}

.cs-pm-facts__icon {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--cb-blue);
    font-size: 15px;
    background: var(--cb-ice);
    border-radius: 12px;
}

.cs-pm-facts small {
    display: block;
    color: #8a96a0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.cs-pm-facts strong {
    display: block;
    color: var(--cs-c-title, #393939);
    font-size: 1rem;
    font-weight: 700;
}

.cs-pm-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 12px 0 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 180, 219, 0.14), transparent 45%),
        linear-gradient(135deg, #eef7fd, #f4f6ff);
    border: 1px solid #d7e8f3;
    border-radius: 18px;
}

.cs-pm-results li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    text-align: center;
}

.cs-pm-results li + li {
    border-left: 1px dashed #c9dcea;
}

.cs-pm-results strong {
    background: linear-gradient(135deg, var(--cb-blue), var(--cb-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cs-pm-results span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    color: #4d5b66;
    font-size: 0.88rem;
    font-weight: 700;
}

.cs-pm-results span i {
    color: var(--cb-blue);
    font-size: 12px;
}

/* ---------- 11.2 Campaign showcase cards ---------- */
.cs-pm-ads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.cs-pm-ad {
    --ac: var(--cb-blue);

    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.cs-pm-ad:hover {
    border-color: color-mix(in srgb, var(--ac) 30%, #ffffff);
    box-shadow: 0 16px 32px color-mix(in srgb, var(--ac) 14%, transparent);
    transform: translateY(-3px);
}

.cs-pm-ad__media {
    position: relative;
    margin: 10px 10px 0;
    overflow: hidden;
    background: #eef3f7;
    border-radius: 12px;
}

.cs-pm-ad__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cs-pm-ad:hover .cs-pm-ad__img {
    transform: scale(1.04);
}

.cs-pm-ad__media .cs-shot-ph {
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: 0;
}

.cs-pm-ad__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    color: var(--ac);
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.cs-pm-ad figcaption {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 16px 16px;
}

.cs-pm-ad figcaption strong {
    color: var(--cs-c-title, #393939);
    font-size: 1rem;
    font-weight: 700;
}

.cs-pm-ad figcaption > span {
    margin-top: 4px;
    color: var(--cs-c-text, #73777a);
    font-size: 0.88rem;
    line-height: 1.55;
}

.cs-pm-ad__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: auto 0 0;
    padding: 12px 0 0;
    list-style: none;
}

.cs-pm-ad__tags li {
    padding: 4px 10px;
    color: color-mix(in srgb, var(--ac) 80%, #1e293b);
    font-size: 0.78rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--ac) 9%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--ac) 20%, #ffffff);
    border-radius: 999px;
}

/* ---------- 11.3 Monthly leads chart (6 bars) ---------- */
.cs-pm-chart {
    margin-top: 16px;
}

.cs-pm-chart .cs-seo-chart__panel {
    padding-top: 2px;
}

.cs-seo-chart__total small {
    color: #7a8792;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0;
}

.cs-pm-chart .cs-seo-chart__bar {
    width: min(52px, 56%);
}

.cs-pm-chart .cs-seo-chart__col:nth-child(4) .cs-seo-chart__bar {
    animation-delay: 0.24s;
}

.cs-pm-chart .cs-seo-chart__col:nth-child(5) .cs-seo-chart__bar {
    animation-delay: 0.32s;
}

.cs-pm-chart .cs-seo-chart__col:nth-child(6) .cs-seo-chart__bar {
    animation-delay: 0.4s;
}

/* ---------- 11.4 Before vs after table ---------- */
.cs-pm-compare {
    overflow: hidden;
    border: 1px solid var(--cb-line);
    border-radius: 16px;
}

.cs-pm-compare__row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
}

.cs-pm-compare__row + .cs-pm-compare__row {
    border-top: 1px solid var(--cb-line);
}

.cs-pm-compare__row:not(.cs-pm-compare__row--head):hover {
    background: #f7fbfe;
}

.cs-pm-compare__row--head {
    color: #7a8792;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #f4f8fb;
}

.cs-pm-compare__row--head span:nth-child(3) {
    color: #15803d;
}

.cs-pm-compare__metric {
    color: var(--cs-c-title, #393939);
    font-size: 0.95rem;
    font-weight: 700;
}

.cs-pm-compare__before {
    color: #8a96a0;
    font-size: 0.95rem;
    font-weight: 600;
}

.cs-pm-compare__after {
    color: #15803d;
    font-size: 1.05rem;
    font-weight: 800;
}

.cs-pm-compare__change em {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 700;
    border-radius: 999px;
}

.cs-pm-compare__change em.is-up {
    color: #15803d;
    background: #e7f6ec;
}

.cs-pm-compare__change em.is-down {
    color: #c2410c;
    background: #fff0e6;
}

.cs-pm-compare__change em.is-flat {
    color: #64748b;
    background: #f1f5f9;
}

/* dashboards straight under a subtitle */
.cs-report-grid--flush {
    margin-top: 0;
}

/* ---------- 11.5 Tablets and phones ---------- */
@media (max-width: 575.98px) {
    .cs-pm-facts,
    .cs-pm-ads {
        grid-template-columns: 1fr;
    }

    .cs-pm-results li {
        padding: 16px 6px;
    }

    .cs-pm-results span {
        flex-direction: column;
        gap: 4px;
        font-size: 0.8rem;
    }

    .cs-pm-chart .cs-seo-chart__x strong {
        font-size: 0.72rem;
    }

    .cs-pm-chart .cs-seo-chart__bar b {
        font-size: 0.72rem;
    }

    /* before vs after: metric on its own line, values below */
    .cs-pm-compare__row--head {
        display: none;
    }

    .cs-pm-compare__row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 12px;
        padding: 14px 16px;
    }

    .cs-pm-compare__metric {
        grid-column: 1 / -1;
    }

    .cs-pm-compare__row [data-label]::before {
        display: block;
        margin-bottom: 3px;
        color: #8a96a0;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        content: attr(data-label);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-pm-ad,
    .cs-pm-ad__img {
        transition: none;
    }
}

/* =====================================================================
   12. BRANDING & CREATIVE SOLUTIONS (service 05 cards)
   Markup: #br-colours (gallery and typography: section 13)

   12.2 Colour strip + colour cards (codes use .cs-colour-card__codes)
   12.4 Tablets and phones
   ===================================================================== */

/* ---------- 12.2 Colour strip + colour cards ---------- */
.cs-br-strip {
    display: flex;
    height: 64px;
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--cb-line);
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(23, 37, 84, 0.1);
}

.cs-br-strip span {
    display: flex;
    align-items: flex-end;
    min-width: 0;
    padding: 0 12px 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cs-br-strip span.is-light {
    color: rgba(15, 23, 42, 0.7);
}

.cs-br-colours {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 3 a row; a short last row stretches to fill the width */
.cs-br-colour {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 8px 8px 10px;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 16px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.cs-br-colour:hover {
    box-shadow: 0 14px 28px rgba(8, 72, 112, 0.1);
    transform: translateY(-3px);
}

.cs-br-colour__swatch {
    display: flex;
    align-items: flex-end;
    height: 92px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 11px;
}

.cs-br-colour__swatch b {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.cs-br-colour__swatch.is-light b {
    color: rgba(15, 23, 42, 0.7);
}

.cs-br-colour > strong {
    padding: 0 6px;
    color: var(--cs-c-title, #393939);
    font-size: 0.92rem;
    font-weight: 700;
}

.cs-br-colour__role {
    padding: 0 6px;
    margin-bottom: 6px;
    color: #8a96a0;
    font-size: 0.76rem;
    line-height: 1.4;
}

.cs-br-colour .cs-colour-card__codes {
    margin-top: auto;
}

/* ---------- 12.4 Tablets and phones ---------- */

@media (max-width: 575.98px) {
    

    

    .cs-br-strip {
        height: 52px;
    }

    .cs-br-strip span {
        padding: 0 6px 8px;
        font-size: 10px;
    }

    /* colour cards: one a row, swatch on the left */
    .cs-br-colour {
        display: grid;
        flex-basis: 100%;
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-rows: auto auto 1fr;
        column-gap: 12px;
        padding: 8px;
    }

    .cs-br-colour__swatch {
        grid-row: 1 / span 3;
        height: auto;
        min-height: 76px;
        margin: 0;
        padding: 6px;
    }

    .cs-br-colour__swatch b {
        font-size: 10px;
    }

    .cs-br-colour > strong,
    .cs-br-colour__role {
        padding: 0;
    }

    .cs-br-colour__role {
        margin-bottom: 2px;
    }

    
}

@media (prefers-reduced-motion: reduce) {
    .cs-br-colour {
        transition: none;
    }
}

/* =====================================================================
   13. LAYOUT PIECES ADDED IN THE SHORTER LAYOUT
   13.1  Images keep their proportions
   13.2  Challenges + objectives (2 cards a row)
   13.3  CTA on its own after each service
   13.4  Strips that scroll by themselves (+ pause button)
   13.5  Before & after image slider (drag to compare)
   13.6  SEO landing pages
   13.7  Google Business Profile screenshots in the strip
   13.8  Social media profile screenshots
   13.9  Branding: gallery that follows each image's shape
   13.10 Branding: font pairing + type scale
   13.11 FAQ questions
   13.13 Tablets and phones
   ===================================================================== */

/* ---------- 13.1 Images keep their proportions ----------
   (width / height on the images reserve their space while loading; any rule
   that sets a height on an image still wins) */
:where(.cs-case-body, .cs-case-review) img {
    height: auto;
}

/* ---------- 13.2 Challenges + objectives ---------- */
.cs-case-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 1.8vw, 22px);
    scroll-margin-top: var(--cb-sticky-top);
}

.cs-case-pair > .cs-case-block {
    margin: 0;
}

.cs-case-block--half {
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.2vw, 28px);
}

.cs-case-block--half .cs-title {
    margin-top: 12px;
    font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
}

.cs-case-block--half .cs-case-block__text {
    font-size: 0.95rem;
    line-height: 1.7;
}

.cs-case-pill {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: var(--cb-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--cb-ice);
    border: 1px solid #cfe4f0;
    border-radius: 999px;
}

.cs-case-pill--amber {
    color: var(--cb-amber);
    background: var(--cb-amber-bg);
    border-color: #f6dfc2;
}

.cs-case-block--challenge {
    background: linear-gradient(170deg, #fffaf3, #ffffff 45%);
}

.cs-case-points {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.cs-case-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--cs-c-title, #393939);
    font-size: 0.92rem;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 12px;
}

.cs-case-points li > span {
    display: grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--cb-blue);
    font-size: 12px;
    background: var(--cb-ice);
    border-radius: 9px;
}

.cs-case-block--challenge .cs-case-points li > span {
    color: var(--cb-amber);
    background: var(--cb-amber-bg);
}

/* ---------- 13.3 CTA on its own after each service ---------- */
.cs-case-cta--solo {
    /*display: flex;*/
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .cs-case-cta--solo .cs-case-cta__text.pb-3 {
        padding-bottom: 0 !important;
    }
}

/* ---------- 13.4 Strips that scroll by themselves ----------
   The items are printed twice; the track moves left by half its width and
   starts again, so the strip never ends. Mouse over or keyboard focus pauses it. */
.cs-marquee {
    --dur: 40s;
    --gap: 14px;

    position: relative;
    margin-top: 16px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.cs-marquee__track {
    display: flex;
    width: max-content;
    padding: 6px 0 12px;
    animation: csMarquee var(--dur) linear infinite;
}

.cs-marquee--reverse .cs-marquee__track {
    animation-direction: reverse;
}

.cs-marquee:hover .cs-marquee__track,
.cs-marquee:focus-within .cs-marquee__track,
.cs-marquee.is-paused .cs-marquee__track {
    animation-play-state: paused;
}

.cs-marquee__set {
    display: flex;
    flex: 0 0 auto;
    gap: var(--gap);
    margin: 0;
    padding: 0 var(--gap) 0 0;
    list-style: none;
}

.cs-marquee__set > li {
    flex: 0 0 auto;
}

@keyframes csMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* logo / tool tiles in a strip */
.cs-marquee--tiles .cs-tech-tile {
    width: 128px;
    height: 100%;
}

/* poster and video cards in a strip */
.cs-marquee .cs-poster-card {
    width: 210px;
}

.cs-marquee .cs-video {
    width: 210px;
}

/* title + pause button on one line */
.cs-marquee-head,
.cs-case-block__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}

.cs-marquee-head {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--cb-line);
}

.cs-marquee-head .cs-case-block__subtitle {
    margin: 0;
    padding: 0;
    border: 0;
}

.cs-marquee-head + .cs-marquee {
    margin-top: 10px;
}

.cs-marquee-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    color: var(--cb-blue);
    font-size: 12.5px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #cfe4f0;
    border-radius: 999px;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.cs-marquee-toggle:hover {
    color: #ffffff;
    background: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
    border-color: transparent;
}

.cs-marquee-toggle:focus-visible {
    outline: 2px solid var(--cb-cyan);
    outline-offset: 2px;
}

/* visitors who ask for less motion: a strip they scroll themselves */
@media (prefers-reduced-motion: reduce) {
    .cs-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
        scrollbar-width: thin;
    }

    .cs-marquee__track {
        animation: none;
    }

    .cs-marquee__set[aria-hidden="true"],
    .cs-marquee-toggle {
        display: none;
    }
}

/* ---------- 13.5 Before & after image slider ---------- */
.cs-compare {
    --pos: 50%;

    position: relative;
    margin-top: 16px;
    overflow: hidden;
    background: #eef3f7;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(8, 72, 112, 0.08);
    aspect-ratio: 16 / 10;
    user-select: none;
    touch-action: pan-y;
}

.cs-compare__img,
.cs-compare .cs-shot-ph {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
    border-radius: 0;
}

/* the old website, cut off at the handle */
.cs-compare__before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.cs-compare__label {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 5px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.62);
    border-radius: 999px;
    pointer-events: none;
}

.cs-compare__label--before {
    left: 12px;
}

.cs-compare__label--after {
    right: 12px;
    background: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
}

.cs-compare__line {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 3px;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(15, 23, 42, 0.35);
    transform: translateX(-50%);
    pointer-events: none;
}

.cs-compare__knob {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--cb-blue);
    font-size: 15px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
    transform: translate(-50%, -50%);
}

/* the real control: an invisible range input over the whole image */
.cs-compare__range {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.cs-compare:has(.cs-compare__range:focus-visible) .cs-compare__knob {
    outline: 3px solid var(--cb-cyan);
    outline-offset: 3px;
}

/* ---------- 13.6 SEO landing pages ---------- */
.cs-seo-landing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.cs-landing {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
    transition: box-shadow 0.3s ease;
}

.cs-landing:hover {
    box-shadow: 0 16px 30px rgba(8, 72, 112, 0.1);
}

.cs-landing__screen {
    margin: 10px 10px 0;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    box-shadow: none;
}

/* full-length screenshot scrolls on hover */
.cs-landing:hover .cs-page-card__shot {
    object-position: 50% 100%;
}

.cs-landing__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 16px 16px;
}

.cs-landing__title {
    color: var(--cs-c-title, #393939);
    font-size: 1rem;
    font-weight: 700;
}

.cs-landing__text {
    margin-top: 3px;
    color: var(--cs-c-text, #73777a);
    font-size: 0.86rem;
    line-height: 1.5;
}

.cs-landing__results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.cs-landing__results li {
    padding: 8px 10px;
    background: linear-gradient(150deg, #eef7fd, #ffffff);
    border: 1px solid var(--cb-line);
    border-radius: 12px;
}

.cs-landing__results b {
    display: block;
    color: var(--cb-blue);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.cs-landing__results span {
    color: #7a8792;
    font-size: 0.76rem;
    font-weight: 600;
}

.cs-landing__label {
    margin: 12px 0 6px;
    color: #8a96a0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.cs-landing__ranks {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cs-landing__ranks li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px dashed var(--cb-line);
}

.cs-landing__ranks li > span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--cs-c-title, #393939);
    font-size: 0.86rem;
    font-weight: 600;
}

.cs-landing__ranks li > span i {
    color: var(--cb-blue);
    font-size: 11px;
}

.cs-landing__ranks .cs-seo-kw__badge {
    min-width: 38px;
    padding: 2px 8px;
    font-size: 0.82rem;
}

/* ---------- 13.7 Google Business Profile screenshots in the strip ---------- */
.cs-shot-tile {
    width: 250px;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
    transition: box-shadow 0.3s ease;
}

.cs-shot-tile:hover {
    box-shadow: 0 16px 30px rgba(8, 72, 112, 0.1);
}

.cs-shot-tile__media {
    margin: 10px 10px 0;
    overflow: hidden;
    background: #eef3f7;
    border-radius: 12px;
}

.cs-shot-tile__img,
.cs-shot-tile__media .cs-shot-ph {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
}

.cs-shot-tile__media .cs-shot-ph {
    height: auto;
}

.cs-shot-tile figcaption {
    padding: 12px 14px 14px;
}

.cs-shot-tile figcaption strong {
    display: block;
    color: var(--cs-c-title, #393939);
    font-size: 0.95rem;
    font-weight: 700;
}

.cs-shot-tile figcaption span {
    display: block;
    margin-top: 3px;
    color: var(--cs-c-text, #73777a);
    font-size: 0.84rem;
    line-height: 1.5;
    white-space: normal;
}

/* ---------- 13.8 Social media profile screenshots ---------- */
.cs-sm-profiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cs-sm-profile {
    --pc: var(--cb-blue);

    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 16px;
}

.cs-sm-profile__media {
    margin: 8px 8px 0;
    overflow: hidden;
    background: #eef3f7;
    border-radius: 11px;
}

.cs-sm-profile__img,
.cs-sm-profile__media .cs-shot-ph {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 0;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.cs-sm-profile__media .cs-shot-ph {
    height: auto;
}

.cs-sm-profile:hover .cs-sm-profile__img {
    transform: scale(1.04);
}

.cs-sm-profile figcaption {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 12px;
    color: var(--cs-c-title, #393939);
    font-size: 0.9rem;
    font-weight: 700;
}

.cs-sm-profile figcaption i {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    color: #ffffff;
    font-size: 12px;
    background: var(--pc);
    border-radius: 8px;
}

/* ---------- 13.9 Branding gallery (each image keeps its shape) ---------- */
.cs-br-masonry {
    margin-top: 16px;
    column-gap: 14px;
    columns: 3 190px;
}

.cs-br-masonry .cs-br-shot {
    position: relative;
    display: block;
    margin: 0 0 14px;
    overflow: hidden;
    background: #eef3f7;
    border-radius: 14px;
    break-inside: avoid;
}

.cs-br-masonry .cs-br-shot__img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.cs-br-masonry .cs-shot-ph {
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 0;
}

.cs-br-masonry .cs-br-shot:hover .cs-br-shot__img {
    transform: scale(1.04);
}

.cs-br-masonry figcaption {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: fit-content;
    max-width: calc(100% - 20px);
    padding: 5px 11px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.62);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

/* ---------- 13.10 Branding: font pairing + type scale ---------- */
.cs-br-pair {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    margin-top: 16px;
    overflow: hidden;
    background: linear-gradient(120deg, #f1f5f9, #eef4ff);
    border: 1px solid var(--cb-line);
    border-radius: 18px;
}

.cs-br-pair__font {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.cs-br-pair__aa {
    flex: 0 0 auto;
    color: #172554;
    font-size: clamp(3rem, 2.4rem + 2vw, 4.2rem);
    line-height: 1;
}

.cs-br-pair__font--head .cs-br-pair__aa {
    font-family: var(--br-head), sans-serif;
    font-weight: 700;
}

.cs-br-pair__font--body .cs-br-pair__aa {
    color: #2563eb;
    font-family: var(--br-body), sans-serif;
    font-weight: 400;
}

.cs-br-pair__font small {
    display: block;
    color: #8a96a0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.cs-br-pair__font strong {
    display: block;
    color: var(--cs-c-title, #393939);
    font-size: 1.2rem;
    font-weight: 700;
}

.cs-br-pair__font--head strong {
    font-family: var(--br-head), sans-serif;
}

.cs-br-pair__font--body strong {
    font-family: var(--br-body), sans-serif;
}

.cs-br-pair__font div > span {
    display: block;
    margin-top: 2px;
    color: var(--cs-c-text, #73777a);
    font-size: 0.82rem;
    line-height: 1.45;
}

.cs-br-pair__plus {
    display: grid;
    align-self: center;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #172554, #2563eb);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.8);
}

.cs-br-scale {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--cb-line);
    border-radius: 16px;
}

.cs-br-scale li {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px 18px;
}

.cs-br-scale li + li {
    border-top: 1px solid var(--cb-line);
}

.cs-br-scale__spec b {
    display: block;
    color: #2563eb;
    font-size: 0.86rem;
    font-weight: 700;
}

.cs-br-scale__spec small {
    color: #8a96a0;
    font-size: 11.5px;
}

.cs-br-scale__sample {
    min-width: 0;
    overflow: hidden;
    color: #172554;
    font-size: calc(var(--fs) * 1px);
    line-height: 1.3;
    text-overflow: ellipsis;
}

.cs-br-scale__sample--head {
    font-family: var(--br-head), sans-serif;
    white-space: nowrap;
}

.cs-br-scale__sample--body {
    color: #475569;
    font-family: var(--br-body), sans-serif;
    line-height: 1.6;
}

/* ---------- 13.11 FAQ questions ---------- */

/* the review card fills the column next to the FAQ */

/* native details / summary, one open at a time */
.cs-faq {
    display: grid;
    gap: 10px;
}

.cs-faq__item {
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 16px;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.cs-faq__item[open] {
    border-color: #b9dcef;
    box-shadow: 0 12px 26px rgba(8, 72, 112, 0.08);
}

.cs-faq__item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.cs-faq__item summary::-webkit-details-marker {
    display: none;
}

.cs-faq__item summary:focus-visible {
    outline: 2px solid var(--cb-cyan);
    outline-offset: 2px;
    border-radius: 16px;
}

.cs-faq__num {
    display: grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--cb-blue);
    font-size: 12px;
    font-weight: 700;
    background: var(--cb-ice);
    border-radius: 10px;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.cs-faq__item[open] .cs-faq__num {
    color: #ffffff;
    background: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
}

.cs-faq__q {
    flex: 1;
    color: var(--cs-c-title, #393939);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
}

/* plus that turns into a minus */
.cs-faq__icon {
    position: relative;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: 1px solid #cfe4f0;
    border-radius: 50%;
}

.cs-faq__icon::before,
.cs-faq__icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background: var(--cb-blue);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
    content: "";
}

.cs-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.cs-faq__item[open] .cs-faq__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.cs-faq__item p {
    margin: 0;
    padding: 0 16px 16px 60px;
    color: var(--cs-c-text, #73777a);
    font-size: 0.93rem;
    line-height: 1.7;
}

/* ---------- 13.13 Tablets and phones ---------- */
@media (max-width: 767.98px) {
    .cs-case-pair {
        grid-template-columns: 1fr;
    }

    .cs-case-cta--solo {
        flex-direction: column;
        align-items: flex-start;
    }

    .cs-br-pair {
        grid-template-columns: 1fr;
    }

    .cs-br-pair__plus {
        z-index: 1;
        justify-self: center;
        width: 34px;
        height: 34px;
        margin: -4px 0;
        font-size: 1.1rem;
    }

    .cs-br-pair__font {
        padding: 16px 18px;
    }
}

@media (max-width: 575.98px) {
    .cs-marquee .cs-poster-card,
    .cs-marquee .cs-video {
        width: 180px;
    }

    .cs-shot-tile {
        width: 220px;
    }

    .cs-sm-profiles {
        gap: 10px;
    }

    .cs-sm-profile figcaption {
        padding: 8px 10px 10px;
        font-size: 0.8rem;
    }

    .cs-br-masonry {
        columns: 2;
        column-gap: 10px;
    }

    .cs-br-masonry .cs-br-shot {
        margin-bottom: 10px;
    }

    .cs-br-scale li {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 14px;
    }

    .cs-br-scale__sample {
        font-size: calc(min(var(--fs), 30) * 1px);
    }

    .cs-br-scale__sample--head {
        white-space: normal;
    }

    .cs-compare__knob {
        width: 38px;
        height: 38px;
    }

    .cs-faq__item p {
        padding-left: 16px;
    }

    
}

@media (prefers-reduced-motion: reduce) {
    .cs-landing,
    .cs-shot-tile,
    .cs-sm-profile__img,
    .cs-br-masonry .cs-br-shot__img,
    .cs-faq__item,
    .cs-faq__num,
    .cs-faq__icon::before,
    .cs-faq__icon::after,
    .cs-marquee-toggle {
        transition: none;
    }
}

/* =====================================================================
   14. BELOW THE CASE STUDY: CLIENT REVIEW, FAQ, ENQUIRY FORM
   14.1 Shared colours + headings
   14.2 Client review (left text, right Google-style review)
   14.3 FAQ (left title, right questions; question styles in 13.11)
   14.4 Enquiry CTA (left text + WhatsApp / call, right form)
   14.5 Tablets and phones
   ===================================================================== */

/* ---------- 14.1 Shared colours + headings ---------- */
.cs-case-review,
.cs-case-faq,
.cs-case-quote {
    --cb-blue: #0870af;
    --cb-cyan: #159dd3;
    --cb-line: #e1edf4;
    --cb-ice: #eef7fc;

    scroll-margin-top: 110px;
}

.cs-case-review .cs-eyebrow,
.cs-case-faq .cs-eyebrow,
.cs-case-quote .cs-eyebrow {
    text-align: left;
}

.cs-case-review__title {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 1.05rem + 1.2vw, 2rem);
    text-align: left;
}

.cs-case-review__text {
    margin: 0;
    color: var(--cs-c-text, #73777a);
    font-size: var(--cs-fs-subtext, 1rem);
    line-height: 1.75;
}

/* ---------- 14.2 Client review ---------- */
.cs-case-review {
    padding: 0 0 clamp(28px, 3vw, 40px);
}

.cs-case-review__panel {
    padding: clamp(22px, 3vw, 38px);
    background:
        radial-gradient(circle at 100% 0%, rgba(21, 157, 211, 0.1), transparent 45%),
        linear-gradient(160deg, #f5fafd, #ffffff 60%);
    border: 1px solid var(--cb-line);
    border-radius: 24px;
}

.cs-case-review__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.cs-case-review__points li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px 8px 8px;
    color: #4d5b66;
    font-size: 0.9rem;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 999px;
}

.cs-case-review__points i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #ffffff;
    font-size: 12px;
    background: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
    border-radius: 50%;
}

.cs-case-review__points b {
    color: var(--cs-c-title, #393939);
    font-size: 1rem;
}

/* Google-style review */
.cs-greview {
    display: grid;
    gap: 12px;
}

.cs-greview__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 14px;
}

.cs-greview__google {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cs-greview__google span:nth-child(1),
.cs-greview__google span:nth-child(4) {
    color: #4285f4;
}

.cs-greview__google span:nth-child(2),
.cs-greview__google span:nth-child(6) {
    color: #ea4335;
}

.cs-greview__google span:nth-child(3) {
    color: #fbbc05;
}

.cs-greview__google span:nth-child(5) {
    color: #34a853;
}

.cs-greview__label {
    color: #5f6368;
    font-size: 1rem;
    font-weight: 600;
}

.cs-greview__score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.cs-greview__score strong {
    color: #202124;
    font-size: 1.35rem;
    font-weight: 700;
}

.cs-greview__stars {
    display: inline-flex;
    gap: 2px;
    color: #fbbc04;
    font-size: 14px;
}

.cs-greview__sample {
    padding: 3px 10px;
    color: #8a6100;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #fff4d6;
    border-radius: 999px;
}

.cs-greview__card {
    position: relative;
    margin: 0;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(32, 33, 36, 0.07);
}

.cs-greview__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-greview__avatar {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50%;
}

.cs-greview__who {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.cs-greview__who strong {
    display: block;
    color: #202124;
    font-size: 1rem;
    font-weight: 700;
}

.cs-greview__who small {
    color: #70757a;
    font-size: 0.84rem;
}

.cs-greview__g {
    color: #4285f4;
    font-size: 20px;
}

.cs-greview__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: 12px;
    color: #70757a;
    font-size: 0.84rem;
}

.cs-greview__text {
    margin: 10px 0 0;
}

.cs-greview__text p {
    margin: 0;
    color: #3c4043;
    font-size: 0.98rem;
    line-height: 1.75;
}

.cs-greview__posted {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: #1a73e8;
    font-size: 0.8rem;
    font-weight: 600;
}

.cs-greview__link {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a73e8;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.cs-greview__link:hover {
    text-decoration: underline;
}

/* ---------- 14.3 FAQ ---------- */
.cs-case-faq {
    padding: clamp(10px, 1.5vw, 20px) 0 clamp(36px, 4vw, 56px);
}

.cs-case-faq__help {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 14px;
    color: var(--cs-c-title, #393939);
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 14px;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.cs-case-faq__help:hover {
    color: var(--cs-c-title, #393939);
    border-color: #b9dcef;
    box-shadow: 0 12px 26px rgba(8, 72, 112, 0.08);
}

.cs-case-faq__help i {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    font-size: 16px;
    background: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
    border-radius: 12px;
}

.cs-case-faq__help small {
    display: block;
    color: #8a96a0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cs-case-faq__help:focus-visible {
    outline: 2px solid var(--cb-cyan);
    outline-offset: 2px;
}

/* ---------- 14.4 Enquiry CTA ---------- */
.cs-case-quote {
    padding: 0 0 var(--cs-section-y, 70px);
}

.cs-case-quote__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 30px 34px;
    background:
        radial-gradient(ellipse at 0% 100%, rgba(51, 127, 175, 0.18), transparent 52%),
        linear-gradient(115deg, #123347, #12405d 65%, #114d73);
    border: 1px solid #385e76;
    border-radius: 24px;
    box-shadow:
        0 16px 36px rgba(16, 50, 71, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

/* soft rings behind the form */
.cs-case-quote__panel::before {
    position: absolute;
    z-index: -1;
    right: -170px;
    bottom: -280px;
    width: 650px;
    height: 650px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 40px rgba(255, 255, 255, 0.025),
        0 0 0 80px rgba(255, 255, 255, 0.015);
    pointer-events: none;
    content: "";
}

.cs-case-quote__title {
    margin: 0;
    font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem);
    line-height: 1.3;
    text-align: left;
}

.cs-case-quote__text {
    max-width: 560px;
    margin: 10px 0 0;
    color: #c4d4de;
    font-size: 16px;
    line-height: 1.72;
}

.cs-case-quote__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-top: 20px;
}

/* white form card */
.cs-case-quote__card {
    position: relative;
    width: 100%;
    margin-left: auto;
    padding: 26px 23px 23px;
    background: #ffffff;
    border: 1px solid #e5ebef;
    border-radius: 17px;
    box-shadow:
        0 18px 38px rgba(0, 22, 35, 0.19),
        0 0 0 5px rgba(255, 255, 255, 0.045);
}

.cs-case-quote__card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 11px;
    padding-bottom: 18px;
}

.cs-case-quote__card-head > div {
    min-width: 0;
}

.cs-case-quote__card-head h3 {
    margin: 0;
    color: #0f2b3d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.cs-case-quote__card-head p {
    margin: 6px 0 0;
    color: #5e7180;
    font-size: 13px;
    line-height: 1.65;
}

.cs-case-quote__symbol {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #687c88;
    font-size: 15px;
    background: #f3f7fa;
    border: 1px solid #e1e7ea;
    border-radius: 9px;
}

.cs-case-quote__form .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 19px;
}

/* fields: the label sits in the top border */
.cs-qfield {
    position: relative;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #d2dadf;
    border-radius: 7px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cs-qfield > label {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 8px;
    max-width: calc(100% - 16px);
    margin: 0;
    padding: 0 4px;
    color: #456376;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    background: #ffffff;
    transform: translateY(-50%);
}

.cs-qfield > label > span {
    color: #0870af;
}

.cs-qfield__icon {
    position: absolute;
    top: 50%;
    left: 11px;
    width: 13px;
    color: #758f9f;
    font-size: 11px;
    text-align: center;
    pointer-events: none;
    transform: translateY(-50%);
}

.cs-qfield input,
.cs-qfield textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    color: #0f2b3d;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    background: transparent;
    border: 0;
    border-radius: inherit;
    outline: none;
}

.cs-qfield input {
    height: 42px;
    padding: 10px 10px 8px 31px;
}

.cs-qfield input::placeholder,
.cs-qfield textarea::placeholder {
    color: #929ea5;
    opacity: 1;
}

.cs-qfield textarea {
    height: 76px;
    min-height: 76px;
    padding: 12px 10px 9px 31px;
    resize: vertical;
}

.cs-qfield--textarea .cs-qfield__icon {
    top: 16px;
    transform: none;
}

.cs-qfield:focus-within {
    border-color: #0870af;
    box-shadow: 0 0 0 3px rgba(8, 92, 145, 0.08);
}

.cs-qfield:focus-within > label,
.cs-qfield:focus-within .cs-qfield__icon {
    color: #0870af;
}

/* ---------- 14.5 Tablets and phones ---------- */
@media (max-width: 991.98px) {
    .cs-case-quote__panel {
        padding: 28px;
    }

    .cs-case-quote__card {
        max-width: 620px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .cs-case-review__panel {
        padding: 20px 16px;
    }

    .cs-greview__card {
        padding: 16px;
    }

    .cs-greview__score {
        margin-left: 0;
    }

    .cs-case-quote__panel {
        padding: 22px 16px;
        border-radius: 20px;
    }

    .cs-case-quote__buttons .cs-btn {
        justify-content: center;
        width: 100%;
    }

    .cs-case-quote__card {
        padding: 22px 16px 18px;
    }

    .cs-case-quote__symbol {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-case-faq__help,
    .cs-qfield {
        transition: none;
    }
}

/* the "Industry" highlight opens the industry page (portfolio-<industry>.php) */
.cs-case-highlight__link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(8, 112, 175, 0.35);
    text-underline-offset: 3px;
}

.cs-case-highlight__link:hover,
.cs-case-highlight__link:focus-visible {
    color: var(--cb-blue, #0870af);
    text-decoration-color: currentColor;
}

/* client logo above "About the Client" (Admin → Portfolio → Projects → Client logo) */
.cs-case-logo {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    max-height: 64px;
    margin: 0 0 16px;
    object-fit: contain;
}
