/* Case Study: Planworks – same layout as Volvo case study, standalone styles */

/* Ensure Our Success Stories stays highlighted on Planworks case study */
body.page-case-study-planworks .main-nav a.nav-link[href="/success-stories"] {
    color: #ffffff;
    border-bottom-color: #e85d2a;
}

/* Planworks hero: banner image placement (align to blue-line guide) + left overlay synced with image */
body.page-case-study-planworks .cs-hero-img {
    object-position: 68% 50%;
}

/* Left side colored to sync with image – solid dark band then blend into image */
body.page-case-study-planworks .cs-hero-overlay {
    background: linear-gradient(to right,
        rgba(18, 18, 20, 0.98) 0%,
        rgba(18, 18, 20, 0.95) 28%,
        rgba(18, 18, 20, 0.7) 45%,
        rgba(0, 0, 0, 0.35) 65%,
        transparent 100%);
}

/* Planworks hero: logo + tagline block */
body.page-case-study-planworks .cs-hero-logo-wrap {
    margin-bottom: 18px;
}

body.page-case-study-planworks .cs-hero-logo-tagline {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 6px;
    margin-bottom: 0;
}

/* Planworks hero: logo same size and placement as Qlooch (380×73), left-aligned */
body.page-case-study-planworks .cs-hero-logo-wrap .cs-hero-logo-circle {
    margin-bottom: 0;
}

body.page-case-study-planworks .cs-hero-logo-circle {
    width: 380px;
    height: 73px;
    margin-bottom: 18px; /* when not inside .cs-hero-logo-wrap */
    border-radius: 0;
    justify-content: flex-start;
    align-items: flex-start;
}

body.page-case-study-planworks .cs-hero-logo {
    width: 380px;
    height: 73px;
    object-fit: contain;
    object-position: left top;
    opacity: 1;
    align-self: flex-start;
}

.cs-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    overflow: hidden;
}

.cs-hero-bg {
    position: absolute;
    inset: 0;
}

.cs-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
}

.cs-hero-container {
    position: relative;
    z-index: 2;
    padding: 60px var(--container-padding, 36px) 60px;
    max-width: var(--container-width, 1440px);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.cs-hero-logo-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.cs-hero-logo {
    width: 48px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.cs-hero-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: #000000;
    padding: 8px 14px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.cs-hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.cs-hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 28px 0;
    line-height: 1.55;
}

.cs-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: #e85c29;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cs-hero-cta:hover {
    background: #d64d1f;
    color: #fff;
    transform: translateY(-1px);
}

/* Key highlights (Figma 40-1022) – 4 cards below hero, same horizontal padding as footer (6%) */
.cs-highlights {
    background: #000000;
    padding: 60px 6%;
    font-family: 'Inter', sans-serif;
}

.cs-highlights .container {
    max-width: 1440px;
    margin: 0 auto;
}

.cs-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cs-highlight-card {
    background: #18181b;
    border: 1.2px solid #27272a;
    border-radius: 17px;
    padding: 29px 29px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cs-highlight-icon-wrap {
    width: 29px;
    height: 29px;
    margin-bottom: 19px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cs-highlight-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cs-highlight-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.74px;
    text-transform: uppercase;
    color: #71717b;
    margin-bottom: 8px;
    line-height: 1.5;
}

.cs-highlight-title {
    font-size: 19px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
    .cs-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cs-highlights {
        padding: 40px 20px;
    }

    .cs-highlights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cs-highlight-card {
        padding: 24px 20px 28px;
    }

    .cs-highlight-title {
        font-size: 17px;
    }
}

/* Sections */
.cs-section {
    padding: 80px 6%;
    font-family: 'Inter', sans-serif;
}

.cs-section.cs-alt {
    background-color: #f9fafb;
}

.cs-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
}

.cs-section-text {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
    max-width: 720px;
}

.cs-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 40px;
}

.cs-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.cs-metric-value {
    font-size: 36px;
    font-weight: 700;
    color: #e85c29;
}

.cs-metric-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* CTA */
.cs-cta {
    padding: 80px 6%;
    background-color: #0f172a;
    color: #ffffff;
    text-align: center;
}

.cs-cta-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.cs-cta-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 28px 0;
}

.cs-cta .btn-primary {
    margin-bottom: 24px;
}

.cs-cta-back {
    display: inline-block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.cs-cta-back:hover {
    color: #fff;
}

/* Legacy bottleneck (Figma 40-1175) – Case Study heading + 4 challenge cards */
.cs-bottleneck {
    background: linear-gradient(150deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 81px 6%;
    font-family: 'Inter', sans-serif;
}

.cs-bottleneck .container {
    max-width: 1440px;
    margin: 0 auto;
}

.cs-bottleneck-tag {
    display: inline-block;
    background: rgba(232, 92, 41, 0.1);
    color: #e85c29;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 8px 16px;
    border-radius: 9999px;
    margin-bottom: 25px;
}

.cs-bottleneck-title {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.35;
    color: #0a0a0a;
    margin: 0 0 32px 0;
    max-width: 900px;
}

.cs-bottleneck-intro {
    display: flex;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 65px;
}

.cs-bottleneck-para {
    flex: 0 1 520px;
    font-size: 18px;
    line-height: 1.62;
    color: #4a5565;
    margin: 0;
}

.cs-bottleneck-callout {
    flex: 1 1 auto;
    min-width: 0;
    background: linear-gradient(to right, rgba(232, 92, 41, 0.05), rgba(232, 92, 41, 0.1));
    border-left: 4px solid #e85c29;
    border-radius: 0 10px 10px 0;
    padding: 24px 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cs-bottleneck-callout-text {
    font-size: 18px;
    font-weight: 500;
    color: #e85c29;
    margin: 0;
    line-height: 1.55;
}

.cs-bottleneck-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cs-bottleneck-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cs-bottleneck-card-icon {
    width: 57px;
    height: 57px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(232, 92, 41, 0.2) 0%, rgba(232, 92, 41, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.cs-bottleneck-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.cs-bottleneck-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #101828;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.cs-bottleneck-card-desc {
    font-size: 16px;
    line-height: 1.62;
    color: #4a5565;
    margin: 0;
}

@media (max-width: 1024px) {
    .cs-bottleneck-title {
        font-size: 40px;
    }

    .cs-bottleneck-intro {
        flex-direction: column;
        margin-bottom: 48px;
    }

    .cs-bottleneck-para {
        flex: none;
        max-width: none;
    }

    .cs-bottleneck-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cs-bottleneck {
        padding: 48px 20px;
    }

    .cs-bottleneck-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .cs-bottleneck-intro {
        margin-bottom: 36px;
    }

    .cs-bottleneck-callout {
        padding: 20px 20px;
    }

    .cs-bottleneck-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cs-bottleneck-card {
        padding: 24px 20px;
    }
}

/* Legacy vs. Modern (Figma 43-1401) */
.cs-evolution {
    background: #030712;
    padding: 70px 6%;
    font-family: 'Inter', sans-serif;
}

.cs-evolution .container {
    max-width: 1440px;
    margin: 0 auto;
}

.cs-evolution-tag {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    background: rgba(232, 92, 41, 0.1);
    color: #e85c29;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
    padding: 10px 20px;
    border-radius: 9999px;
    width: fit-content;
}

.cs-evolution-title {
    font-size: 46px;
    font-weight: 500;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 12px 0;
    text-align: center;
    letter-spacing: 0.01em;
}

.cs-evolution-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: #99a1af;
    margin: 0 0 40px 0;
    text-align: center;
    letter-spacing: -0.01em;
}

.cs-evolution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cs-evolution-card {
    background: #101828;
    border-radius: 14px;
    padding: 33px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.cs-evolution-card--before {
    border: 1px solid #1e2939;
}

.cs-evolution-card--after {
    border: 2px solid #e85c29;
}

.cs-evolution-badge {
    position: absolute;
    top: 24px;
    right: 32px;
    background: #00c950;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 3px 9px;
    border-radius: 8px;
}

.cs-evolution-card-label {
    font-size: 14px;
    color: #6a7282;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.cs-evolution-card-label--orange {
    color: #e85c29;
}

.cs-evolution-card-heading {
    font-size: 24px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0 0 24px 0;
    line-height: 1.33;
}

.cs-evolution-card--after .cs-evolution-card-heading {
    color: #ffffff;
}

.cs-evolution-card-heading--teal {
    color: #ffffff !important; /* PlanWorks CRM System: white */
}

.cs-evolution-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-evolution-list li {
    font-size: 16px;
    line-height: 1.5;
    color: #99a1af;
    padding-left: 20px;
    position: relative;
    letter-spacing: -0.01em;
}

.cs-evolution-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4a5565;
}

.cs-evolution-list--check li {
    padding-left: 36px;
    color: #f3f4f6;
}

.cs-evolution-list--check li::before {
    content: none;
}

.cs-evolution-check {
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.cs-evolution-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 40px;
    padding: 12px 24px;
    border: 1px solid #364153;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.cs-evolution-cta:hover {
    border-color: #e85c29;
    background: rgba(232, 92, 41, 0.08);
    color: #fff;
}

.cs-evolution-cta-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .cs-evolution-title {
        font-size: 32px;
    }

    .cs-evolution-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .cs-evolution-grid {
        grid-template-columns: 1fr;
    }

    .cs-evolution-card {
        min-height: 0;
    }

    .cs-evolution-cta {
        margin-top: 24px;
    }

    .cs-evolution-badge {
        top: 20px;
        right: 20px;
    }
}

/* The Enhancement Roadmap (Figma 26-860) */
.cs-roadmap {
    background: #ffffff;
    padding: 80px 6%;
    font-family: 'Inter', sans-serif;
}

.cs-roadmap .container {
    max-width: 1440px;
    margin: 0 auto;
}

.cs-roadmap-label {
    font-size: 14px;
    color: #e85c29;
    text-align: center;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.cs-roadmap-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #0a0a0a;
    text-align: center;
    margin: 0 0 24px 0;
    letter-spacing: 0.01em;
}

.cs-roadmap-subtitle {
    font-size: 18px;
    line-height: 1.55;
    color: #4a5565;
    text-align: center;
    margin: 0 0 65px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.01em;
}

.cs-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 24px;
    align-items: start;
}

.cs-roadmap-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.cs-roadmap-num {
    width: 81px;
    height: 81px;
    border-radius: 50%;
    background: #e85c29;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-roadmap-col-title {
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
    text-align: center;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.cs-roadmap-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 25px;
    width: 100%;
    box-sizing: border-box;
}

.cs-roadmap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cs-roadmap-list li {
    font-size: 14px;
    line-height: 1.45;
    color: #364153;
    padding-left: 32px;
    position: relative;
    letter-spacing: -0.01em;
}

.cs-roadmap-check {
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .cs-roadmap-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cs-roadmap-title {
        font-size: 36px;
    }

    .cs-roadmap-subtitle {
        margin-bottom: 48px;
    }
}

@media (max-width: 600px) {
    .cs-roadmap {
        padding: 48px 20px;
    }

    .cs-roadmap-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .cs-roadmap-subtitle {
        font-size: 16px;
        margin-bottom: 36px;
    }

    .cs-roadmap-num {
        width: 64px;
        height: 64px;
        font-size: 20px;
    }

    .cs-roadmap-col-title {
        font-size: 18px;
    }
}

/* Our Strategic Transformation Approach (Figma 50-2109) */
.cs-approach {
    background: linear-gradient(151deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 81px 6%;
    font-family: 'Inter', sans-serif;
}

.cs-approach .container {
    max-width: 1440px;
    margin: 0 auto;
}

.cs-approach-title {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    color: #101828;
    text-align: center;
    margin: 0 0 16px 0;
    letter-spacing: 0.01em;
}

.cs-approach-subtitle {
    font-size: 20px;
    line-height: 1.4;
    color: #4a5565;
    text-align: center;
    margin: 0 0 49px 0;
    opacity: 0.9;
    letter-spacing: -0.01em;
}

.cs-approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.cs-approach-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cs-approach-card-header {
    height: 194px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px;
    position: relative;
}

.cs-approach-card-header--1 {
    background: linear-gradient(155deg, #101828 0%, #364153 100%);
}

.cs-approach-header-graphic {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-height: 90%;
    max-width: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.cs-approach-card-header--2 {
    background: linear-gradient(155deg, #1d293d 0%, #45556c 100%);
}

.cs-approach-card-header--3 {
    background: linear-gradient(155deg, #312c85 0%, #432dd7 100%);
}

.cs-approach-num {
    width: 49px;
    height: 49px;
    border-radius: 14px;
    background: linear-gradient(to bottom, #e85c29, #d14919);
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cs-approach-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 240px;
}

.cs-approach-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.cs-approach-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.cs-approach-modules-label {
    font-size: 12px;
    font-weight: 500;
    color: #e85c29;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.cs-approach-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-approach-list li {
    font-size: 14px;
    line-height: 1.45;
    color: #364153;
    padding-left: 28px;
    position: relative;
    letter-spacing: -0.01em;
}

.cs-approach-icon {
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.cs-approach-list--dot li {
    padding-left: 20px;
}

.cs-approach-list--dot li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e85c29;
}

.cs-approach-impact {
    background: #008236;
    border: 1px solid #dcfce7;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: auto;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cs-approach-impact-label {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px 0;
}

.cs-approach-impact-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.4;
}

.cs-approach-impact--stat .cs-approach-impact-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: 0.01em;
}

.cs-approach-impact--stat .cs-approach-impact-text {
    font-size: 18px;
    color: #ffedd4;
    margin: 0;
}

/* Planworks: light card header backgrounds (image area) – blue, pink, green + colored impact boxes */
body.page-case-study-planworks .cs-approach-card-header--planworks-1 {
    background: #f0f7fc; /* lighter blue */
}

body.page-case-study-planworks .cs-approach-card-header--planworks-2 {
    background: #fdf2f8; /* lighter pink */
}

body.page-case-study-planworks .cs-approach-card-header--planworks-3 {
    background: #f0fdf4; /* lighter green */
}

body.page-case-study-planworks .cs-approach-impact--planworks-1 {
    background: #FEE9DF;
    border-color: rgba(232, 92, 41, 0.2);
}

body.page-case-study-planworks .cs-approach-impact--planworks-1 .cs-approach-impact-label {
    color: #e85c29;
}

body.page-case-study-planworks .cs-approach-impact--planworks-1 .cs-approach-impact-text {
    color: #1e293b;
}

body.page-case-study-planworks .cs-approach-impact--planworks-2 {
    background: #F3E9FB;
    border-color: rgba(147, 51, 234, 0.2);
}

body.page-case-study-planworks .cs-approach-impact--planworks-2 .cs-approach-impact-label {
    color: #7c3aed;
}

body.page-case-study-planworks .cs-approach-impact--planworks-2 .cs-approach-impact-text {
    color: #1e293b;
}

body.page-case-study-planworks .cs-approach-impact--planworks-3 {
    background: #16A085;
    border-color: rgba(255, 255, 255, 0.15);
}

body.page-case-study-planworks .cs-approach-impact--planworks-3 .cs-approach-impact-label,
body.page-case-study-planworks .cs-approach-impact--planworks-3 .cs-approach-impact-text {
    color: #ffffff;
}

@media (max-width: 1024px) {
    .cs-approach-grid {
        grid-template-columns: 1fr;
    }

    .cs-approach-title {
        font-size: 36px;
    }

    .cs-approach-subtitle {
        font-size: 18px;
        margin-bottom: 36px;
    }
}

@media (max-width: 600px) {
    .cs-approach {
        padding: 48px 20px;
    }

    .cs-approach-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .cs-approach-subtitle {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .cs-approach-card-header {
        height: 120px;
    }

    .cs-approach-card-body {
        padding: 20px;
    }
}

/* Transformation results (Figma 50-2438) */
.cs-results {
    background: #171b20;
    padding: 80px 6%;
    font-family: 'Inter', sans-serif;
}

.cs-results .container {
    max-width: 1440px;
    margin: 0 auto;
}

.cs-results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.cs-results-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cs-results-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
}

.cs-results-desc {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.cs-results-quote {
    font-size: 16px;
    font-style: italic;
    color: #e85c29;
    margin: 0;
    padding: 0;
    border: none;
}

.cs-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cs-results-card {
    background: #1e242b;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(0, 200, 80, 0.25);
    box-shadow: 0 0 0 1px rgba(0, 200, 80, 0.1);
}

.cs-results-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #00c850;
    margin-bottom: 8px;
}

.cs-results-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.cs-results-card-title-line {
    display: block;
    line-height: 1.3;
}

.cs-results-card-desc {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

@media (max-width: 1024px) {
    .cs-results-container {
        grid-template-columns: 1fr;
    }

    .cs-results-title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .cs-results {
        padding: 48px 20px;
    }

    .cs-results-title {
        font-size: 26px;
    }

    .cs-results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cs-results-card {
        padding: 20px;
    }

    .cs-results-value {
        font-size: 28px;
    }
}

/* Technology Stack & Migration Risk (Figma 59-332) */
.cs-stack-risk {
    background: #f8f8f8;
    padding: 80px 6%;
    font-family: 'Inter', sans-serif;
}

.cs-stack-risk .container {
    max-width: 1440px;
    margin: 0 auto;
}

.cs-stack-risk-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.cs-stack-risk-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cs-stack-risk-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.cs-stack-risk-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-stack-risk-icon--orange {
    background: #e85d2a;
}

.cs-stack-risk-icon--orange .cs-stack-risk-icon-img {
    filter: brightness(0) invert(1);
}

.cs-stack-risk-icon--green {
    background: #00c950;
}

.cs-stack-risk-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.cs-stack-risk-icon-img--white {
    filter: brightness(0) invert(1);
}

.cs-stack-risk-title {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.cs-stack-risk-subtitle {
    font-size: 15px;
    line-height: 1.5;
    color: #666666;
    margin: 0;
}

.cs-stack-risk-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cs-stack-risk-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-stack-risk-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #e85d2a;
    text-transform: uppercase;
}

.cs-stack-risk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cs-stack-risk-tag {
    display: inline-block;
    background: #eeeeee;
    color: #333333;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 20px;
}

.cs-stack-risk-compliance {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333333;
    margin: 16px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid #eeeeee;
}

.cs-stack-risk-compliance-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cs-stack-risk-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cs-stack-risk-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cs-stack-risk-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cs-stack-risk-item-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 4px 0;
}

.cs-stack-risk-item-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #666666;
    margin: 0;
}

@media (max-width: 1024px) {
    .cs-stack-risk-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cs-stack-risk {
        padding: 48px 20px;
    }

    .cs-stack-risk-card {
        padding: 24px;
    }

    .cs-stack-risk-title {
        font-size: 20px;
    }

    .cs-stack-risk-tags {
        gap: 6px;
    }

    .cs-stack-risk-tag {
        font-size: 13px;
        padding: 5px 12px;
    }
}

/* Who This Is For & Strategic Takeaways */
.cs-audience {
    background: #171b20;
    padding: 80px 6%;
    font-family: 'Inter', sans-serif;
}

.cs-audience .container {
    max-width: 1440px;
    margin: 0 auto;
}

.cs-audience-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 24px 48px;
    align-items: stretch;
}

.cs-audience-heading--left {
    grid-column: 1;
    grid-row: 1;
}

.cs-audience-heading--right {
    grid-column: 2;
    grid-row: 1;
}

.cs-audience-list {
    grid-column: 1;
    grid-row: 2;
}

.cs-takeaways-container {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 41, 57, 0.8) 0%, rgba(30, 41, 57, 0.4) 100%);
    border-radius: 12px;
    padding: 28px 24px;
    min-height: 0;
}

.cs-takeaways-grid {
    width: 100%;
}

.cs-audience-heading {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #e85d2a;
    width: fit-content;
}

.cs-audience-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cs-audience-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #1e242b;
    border-radius: 10px;
    padding: 18px 20px;
}

.cs-audience-icon-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 93, 42, 0.1);
}

.cs-audience-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cs-audience-icon-wrap .cs-audience-icon {
    filter: none;
}

/* Ensure orange tint for icons that are not already orange */
.cs-audience-icon-wrap img {
    filter: none;
}

.cs-audience-item-text {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
}

/* Strategic Takeaways grid */
.cs-takeaways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cs-takeaway-card {
    background: #000000;
    border-radius: 10px;
    padding: 24px;
}

.cs-takeaway-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(232, 93, 42, 0.1);
    margin-bottom: 14px;
}

.cs-takeaway-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cs-takeaway-title {
    font-size: 17px;
    font-weight: 700;
    color: #e85d2a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.cs-takeaway-desc {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

@media (max-width: 1024px) {
    .cs-audience-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
    }

    .cs-audience-heading--left {
        grid-column: 1;
        grid-row: 1;
    }

    .cs-audience-heading--right {
        grid-column: 1;
        grid-row: 3;
    }

    .cs-audience-list {
        grid-column: 1;
        grid-row: 2;
    }

    .cs-takeaways-container {
        grid-column: 1;
        grid-row: 4;
    }
}

@media (max-width: 600px) {
    .cs-audience {
        padding: 48px 20px;
    }

    .cs-audience-heading {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .cs-takeaways-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cs-audience-item,
    .cs-takeaway-card {
        padding: 16px;
    }

    .cs-audience-item-text {
        font-size: 15px;
    }
}

/* CTA: Ready to Retire Legacy */
.cs-cta-final {
    background: #e85d2a;
    padding: 72px 6%;
    font-family: 'Inter', sans-serif;
}

.cs-cta-final-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cs-cta-final-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.25;
}

.cs-cta-final-desc {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
}

.cs-cta-final-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 28px;
}

.cs-cta-final-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.cs-cta-final-btn:hover {
    opacity: 0.95;
}

.cs-cta-final-btn--white {
    background: #ffffff;
    color: #333333;
}

.cs-cta-final-btn--outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.9);
}

.cs-cta-final-btn-icon {
    flex-shrink: 0;
}

.cs-cta-final-benefits {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0;
    opacity: 0.95;
}

@media (max-width: 600px) {
    .cs-cta-final {
        padding: 48px 20px;
    }
    .cs-cta-final-title {
        font-size: 26px;
    }
    .cs-cta-final-buttons {
        flex-direction: column;
    }
    .cs-cta-final-btn {
        width: 100%;
    }
}

/* PDF email modal - only visible when opened via button (no [hidden]) */
.cs-pdf-modal[hidden] {
    display: none !important;
}

.cs-pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cs-pdf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cs-pdf-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.cs-pdf-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.cs-pdf-modal-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.cs-pdf-modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-pdf-modal-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.cs-pdf-modal-input:focus {
    outline: none;
    border-color: #e85d2a;
}

.cs-pdf-modal-input-wrap {
    margin-bottom: 4px;
}

.cs-pdf-modal-error {
    font-size: 13px;
    color: #c00;
    margin: 4px 0 0 0;
    line-height: 1.3;
}

.cs-pdf-modal-submit {
    width: 100%;
    margin-top: 8px;
}

.cs-pdf-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .cs-hero {
        min-height: 500px;
        justify-content: center;
    }

    .cs-hero-overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 100%);
    }

    .cs-hero-container {
        padding: 48px var(--container-padding, 36px);
        max-width: 100%;
    }

    .cs-hero-logo-circle {
        width: 72px;
        height: 72px;
        margin-bottom: 16px;
    }

    .cs-hero-logo {
        width: 44px;
    }

    .cs-hero-tag {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 18px;
    }

    .cs-hero-title {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .cs-hero-desc {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .cs-hero-cta {
        font-size: 14px;
        padding: 12px 22px;
    }

    .cs-section {
        padding: 56px 6%;
    }

    .cs-section-title {
        font-size: 24px;
    }

    .cs-section-text {
        font-size: 16px;
    }

    .cs-metrics {
        flex-direction: column;
        gap: 24px;
        margin-top: 32px;
    }

    .cs-metric-value {
        font-size: 28px;
    }

    .cs-cta {
        padding: 56px 6%;
    }

    .cs-cta-title {
        font-size: 26px;
    }

    .cs-cta-desc {
        font-size: 16px;
    }
}

/* PDF export: clone of main-content in fixed-width wrapper (no header/footer), avoid blank pages */
.cs-pdf-export-wrap {
    box-sizing: border-box;
}

.cs-pdf-export-wrap .main-content,
.cs-pdf-export-wrap main {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
}

.cs-pdf-export-wrap section {
    page-break-inside: avoid;
    break-inside: avoid;
}

/* Mobile/small screens: same width as index page (6% horizontal padding) */
@media (max-width: 768px) {
    .cs-hero-container {
        padding-left: var(--container-padding, 36px);
        padding-right: var(--container-padding, 36px);
    }
    .cs-highlights,
    .cs-bottleneck,
    .cs-evolution,
    .cs-roadmap,
    .cs-approach,
    .cs-results,
    .cs-stack-risk,
    .cs-audience-takeaways,
    .cs-cta {
        padding-left: 6%;
        padding-right: 6%;
    }
    .cs-highlights .container,
    .cs-bottleneck .container,
    .cs-evolution .container,
    .cs-roadmap .container,
    .cs-approach .container,
    .cs-results .container,
    .cs-stack-risk .container,
    .cs-audience-takeaways .container,
    .cs-cta .container {
        padding-left: 0;
        padding-right: 0;
    }
}
