@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

.cp-page {
    --navy: #08293c;
    --coral: #f36f5f;
    --cream: #f7f3ec;
    --ink: #163441;
    --muted: #687a82;
    --line: #dce5e8;
    --gold: #d7ab62;
    color: var(--ink);
    background: #fff;
    font-family: "DM Sans", sans-serif;
    line-height: 1.55;
}

.cp-page * { box-sizing: border-box; }
.cp-page h1,
.cp-page h2,
.cp-page h3,
.cp-page strong { font-family: Manrope, "DM Sans", sans-serif; }
.cp-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.cp-hero {
    background: var(--navy);
    color: #fff;
    padding: 66px 0 72px;
    position: relative;
    overflow: hidden;
}
.cp-hero::after {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    right: -220px;
    top: -230px;
    box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.02);
}
.cp-hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.cp-eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #ff9a8d;
    font-size: 13px;
    font-weight: 800;
}
.cp-hero-sub {
    color: #d7e4ea;
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0 0;
    max-width: 660px;
}
.cp-hero h1 {
    font-weight: 800;
    font-size: clamp(36px, 4.8vw, 60px);
    line-height: 1.06;
    letter-spacing: -.045em;
    margin: 13px 0 18px;
    color: #fff;
    max-width: 720px;
}
.cp-hero-lead { color: #c9d8df; font-size: 18px; max-width: 660px; margin: 0 0 28px; }
.cp-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.cp-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    padding: 12px 18px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    background: var(--coral);
    color: var(--navy);
}
.cp-btn:hover { color: var(--navy); filter: brightness(.98); }
.cp-points { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 28px; color: #b9ccd4; font-size: 14px; }
.cp-points strong { color: #fff; }

.cp-dash {
    background: #fff;
    color: var(--ink);
    padding: 21px;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0,0,0,.18);
}
.cp-dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cp-dash-head strong { font-size: 15px; color: var(--navy); }
.cp-live {
    color: #23785c;
    background: #e6f6ee;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.cp-chart-toggle { display: flex; gap: 5px; margin: 14px 0 8px; }
.cp-chart-toggle button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.cp-chart-toggle button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.cp-hero-chart {
    height: 240px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-items: stretch;
    border-bottom: 1px solid #cdd9dd;
    padding: 10px 2px 0;
}
.cp-chart-col {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cp-chart-value {
    font: 800 12px Manrope, sans-serif;
    color: var(--navy);
    margin-bottom: 6px;
    flex: 0 0 auto;
}
.cp-chart-track {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.cp-chart-bar {
    width: min(48px, 78%);
    height: var(--h);
    min-height: 18px;
    background: linear-gradient(#164c68, #0a3147);
    border-radius: 7px 7px 0 0;
    transition: height .35s ease;
}
.cp-chart-col.current .cp-chart-bar { background: linear-gradient(#ff8073, var(--coral)); }
.cp-chart-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    margin-top: 8px;
    min-height: 28px;
    flex: 0 0 auto;
}
.cp-chart-insight {
    margin-top: 17px;
    background: #fff0ed;
    border-left: 3px solid var(--coral);
    padding: 10px 11px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.55;
}
.cp-chart-insight strong { color: var(--navy); }

.cp-anchorbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid var(--line);
}
.cp-anchors { display: flex; gap: 6px; overflow: auto; padding: 11px 0; }
.cp-anchors a {
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.cp-anchors a:hover { background: var(--cream); color: var(--navy); }

.cp-section { padding: 72px 0; }
.cp-soft { background: var(--cream); }
.cp-kicker {
    color: var(--coral);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
}
.cp-section h2 {
    font-weight: 800;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.15;
    letter-spacing: -.03em;
    margin: 8px 0 14px;
    color: var(--navy);
}
.cp-section-head { max-width: 820px; margin-bottom: 28px; }
.cp-section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.cp-prose { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0 0 14px; }
.cp-prose a,
.cp-note a,
.cp-contact-line a {
    color: var(--navy);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-underline-offset: 4px;
}

.cp-intro-grid {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 42px;
    align-items: start;
}

.cp-fta-card {
    position: relative;
    background: #fff;
    border-radius: 32px;
    padding: 40px 36px 28px 48px;
    box-shadow: 0 18px 50px rgba(8, 41, 60, 0.07);
}
.cp-fta-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 9px;
    background: var(--gold);
    border-radius: 32px 0 0 32px;
}
.cp-fta-body {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 32px 36px;
    align-items: start;
}
.cp-fta-main .cp-kicker {
    margin: 0 0 14px;
    font-size: 11px;
    letter-spacing: .16em;
}
.cp-fta-card h2 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.18;
    letter-spacing: -.03em;
    margin: 0 0 18px;
    color: var(--navy);
}
.cp-fta-main p:not(.cp-kicker) {
    margin: 0;
    max-width: 540px;
    color: #8a99a1;
    font-size: 16px;
    line-height: 1.75;
}
.cp-fta-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 14px;
}
.cp-fact {
    background: #fff;
    border: 1px solid #e6eef1;
    border-radius: 18px;
    padding: 18px 16px 20px;
}
.cp-fact-tall {
    grid-column: 2;
    grid-row: 1 / 3;
}
.cp-fact p {
    margin: 0;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}
.cp-fta-note {
    margin-top: 26px;
    background: #f3eee6;
    border-radius: 16px;
    padding: 18px 22px;
}
.cp-fta-note p {
    margin: 0;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
}

.cp-table-wrap { overflow-x: auto; border-radius: 16px; }
.cp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}
.cp-table th,
.cp-table td {
    text-align: left;
    vertical-align: middle;
    padding: 18px 22px;
    line-height: 1.55;
    border-bottom: 1px solid var(--line);
}
.cp-table th {
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 800;
}
.cp-table td { color: var(--ink); font-size: 15px; }
.cp-table tbody tr:last-child td { border-bottom: 0; }
.cp-table tbody tr:nth-child(even) td { background: #fdfbf7; }
.cp-client-table td:first-child {
    font-weight: 800;
    color: var(--navy);
    width: 62%;
}
.cp-client-table td:last-child {
    font-weight: 500;
    color: var(--muted);
}
.cp-table .cp-num { width: 70px; color: var(--coral); font-weight: 800; white-space: nowrap; }
.cp-table .cp-name { width: 28%; font-weight: 800; color: var(--navy); }
.cp-table .cp-fee { width: 150px; font-weight: 800; color: var(--navy); white-space: nowrap; }

.cp-deliver { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cp-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    background: #fff;
}
.cp-card .num { font: 800 13px Manrope, sans-serif; color: var(--coral); }
.cp-card-title {
    font-size: 19px;
    font-weight: 700;
    margin: 18px 0 7px;
    color: var(--navy);
    font-family: Manrope, "DM Sans", sans-serif;
}
.cp-card p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.6; }
.cp-card p.cp-card-title { color: var(--navy); }

.cp-method { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.cp-method-sticky { position: sticky; top: 90px; align-self: start; }
.cp-method-sticky h2 { font-size: 38px; line-height: 1.12; margin: 8px 0 13px; }
.cp-step { display: grid; grid-template-columns: 58px 1fr; gap: 17px; padding: 0 0 28px; position: relative; }
.cp-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 45px;
    bottom: 4px;
    width: 1px;
    background: #cbd8dc;
}
.cp-step-num {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    display: grid;
    place-items: center;
    font: 800 14px Manrope, sans-serif;
    color: var(--coral);
}
.cp-step-title {
    font-size: 20px;
    font-weight: 700;
    margin: 3px 0 5px;
    color: var(--navy);
    font-family: Manrope, "DM Sans", sans-serif;
}
.cp-step p { margin: 0; color: var(--muted); line-height: 1.6; }
.cp-step p.cp-step-title { color: var(--navy); }

.cp-cases { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cp-case {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}
.cp-case-top { height: 8px; background: var(--coral); }
.cp-case:nth-child(2) .cp-case-top { background: var(--gold); }
.cp-case:nth-child(3) .cp-case-top { background: #367594; }
.cp-case-body { padding: 23px 24px; }
.cp-tag {
    font-size: 12px;
    font-weight: 800;
    color: var(--coral);
    text-transform: uppercase;
    letter-spacing: .1em;
}
.cp-case-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 12px 0 9px;
    color: var(--navy);
    font-family: Manrope, "DM Sans", sans-serif;
}
.cp-case p { color: var(--muted); font-size: 15px; margin: 0 0 14px; line-height: 1.65; }
.cp-case p.cp-case-title { color: var(--navy); }
.cp-applies { font-weight: 800; color: var(--navy); }

.cp-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cp-price {
    border: 1px solid var(--line);
    border-radius: 19px;
    padding: 22px;
    background: #fff;
    position: relative;
}
.cp-price.featured {
    border: 2px solid var(--coral);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(8,41,60,.11);
}
.cp-popular {
    position: absolute;
    right: 14px;
    top: 14px;
    background: #ffe9e5;
    color: #a34337;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}
.cp-price-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    max-width: 210px;
    color: var(--navy);
    font-family: Manrope, "DM Sans", sans-serif;
}
.cp-amount { font: 800 28px Manrope, sans-serif; color: var(--navy); margin: 13px 0 3px; }
.cp-fee-label { color: var(--muted); font-size: 13px; margin: 0 0 15px; }
.cp-roles { font-size: 13px; border-top: 1px solid var(--line); padding-top: 13px; color: var(--muted); line-height: 1.6; }
.cp-scope-note { color: var(--muted); font-size: 14px; margin-top: 18px; line-height: 1.6; }
.cp-center { text-align: center; }
.cp-pricing-action { text-align: center; margin-top: 26px; }

.cp-faq { max-width: 850px; margin: auto; }
.cp-faq-item { border-bottom: 1px solid var(--line); }
.cp-faq-q {
    width: 100%;
    padding: 19px 0;
    border: 0;
    background: transparent;
    text-align: left;
    font-weight: 800;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.45;
}
.cp-faq-a { display: none; color: var(--muted); padding: 0 30px 19px 0; line-height: 1.65; }
.cp-faq-item.open .cp-faq-a { display: block; }
.cp-plus { font-size: 22px; color: var(--coral); }

.cp-final { background: var(--navy); color: #fff; padding: 78px 0; }
.cp-final-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; align-items: center; }
.cp-final-copy .cp-eyebrow { margin: 18px 0 12px; }
.cp-final h2 {
    font-size: clamp(32px, 4vw, 42px);
    line-height: 1.12;
    margin: 0 0 14px;
    color: #fff;
}
.cp-final-note,
.cp-final-lead {
    color: #bfd0d7;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}
.cp-final-lead { margin-top: 4px; }
.cp-contact-card {
    background: #fff;
    color: var(--ink);
    border-radius: 20px;
    padding: 26px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.cp-requirement-label {
    margin: 0 0 12px;
    font: 800 21px Manrope, sans-serif;
    color: var(--navy);
}
.cp-contact-card ul {
    margin: 0 0 18px;
    padding-left: 18px;
    color: var(--ink);
    line-height: 1.8;
}
.cp-contact-card .cp-btn { width: 100%; }
.cp-contact-line {
    margin-top: 14px;
    padding: 14px 16px;
    background: #fff0ed;
    border-radius: 12px;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.8;
}
.cp-contact-line a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-underline-offset: 3px;
}

/* Admin-driven case studies */
.case-studies-section {
    padding: 72px 0;
    background: linear-gradient(180deg, #fff 0%, var(--cream) 48%, #fff 100%);
}
.case-studies-shell {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 22px 48px rgba(8, 41, 60, 0.08);
}
.case-studies-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 22px;
}
.case-studies-copy { max-width: 680px; }
.case-studies-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--coral);
}
.case-studies-heading {
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.15;
    color: var(--navy);
    margin: 0 0 10px;
}
.case-studies-intro {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}
.case-studies-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 20px;
    border: 0;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(8, 41, 60, 0.16);
    transition: background .2s ease, transform .2s ease;
}
.case-studies-cta:hover {
    background: var(--coral);
    color: #fff;
    transform: translateY(-1px);
}
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.case-study-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 32px rgba(8, 41, 60, 0.06);
}
.case-study-card-media {
    display: block;
    height: 180px;
    background: var(--cream);
    overflow: hidden;
    flex: 0 0 auto;
}
.case-study-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.case-study-card-media:hover img { transform: scale(1.04); }
.case-study-card-body {
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}
.case-study-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}
.case-study-chip {
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff0ed;
    color: var(--coral);
    font-weight: 700;
}
.case-study-title {
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}
.case-study-title a {
    color: var(--navy);
    text-decoration: none;
}
.case-study-title a:hover,
.case-study-link:hover { color: var(--coral); }
.case-study-summary {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}
.case-study-impact {
    margin-top: auto;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.case-study-impact-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral);
    font-weight: 800;
}
.case-study-impact strong {
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 1.35;
    color: var(--navy);
}
.case-study-link {
    font-weight: 700;
    font-size: 13px;
    color: var(--coral);
    text-decoration: none;
}
.case-study-empty {
    padding: 28px 24px;
    border-radius: 18px;
    background: var(--cream);
    border: 1px dashed var(--line);
}
.case-study-empty-title {
    font-family: Manrope, "DM Sans", sans-serif;
    color: var(--navy);
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
}
.case-study-empty p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .cp-fta-body { grid-template-columns: 1fr; }
    .cp-fta-main p:not(.cp-kicker) { max-width: none; }
    .case-studies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .cp-hero-grid,
    .cp-intro-grid,
    .cp-method,
    .cp-final-grid,
    .cp-facts { grid-template-columns: 1fr; }
    .cp-deliver,
    .cp-pricing { grid-template-columns: 1fr 1fr; }
    .cp-method-sticky { position: static; }
    .cp-price.featured { transform: none; }
    .cp-fta-card { padding: 28px 22px 22px 28px; }
    .case-studies-grid { grid-template-columns: 1fr; }
    .case-study-card-media { height: 200px; }
}
@media (max-width: 620px) {
    .cp-wrap { width: min(100% - 28px, 1180px); }
    .cp-hero { padding: 46px 0 55px; }
    .cp-hero h1 { font-size: 36px; }
    .cp-deliver,
    .cp-pricing { grid-template-columns: 1fr; }
    .cp-final h2 { font-size: 32px; }
    .case-studies-section { padding: 52px 0; }
    .case-studies-shell { padding: 18px; border-radius: 22px; }
    .case-studies-header { align-items: flex-start; }
    .case-study-card.featured .case-study-title,
    .case-study-title { font-size: 20px; }
    .case-studies-cta { width: 100%; }
    .case-studies-grid { grid-template-columns: 1fr; }
    .cp-fta-side,
    .cp-fact-tall { grid-column: auto; grid-row: auto; }
    .cp-fta-side { grid-template-columns: 1fr; }
    .cp-table thead { display: none; }
    .cp-table,
    .cp-table tbody,
    .cp-table tr,
    .cp-table td { display: block; width: 100%; }
    .cp-table { border: 0; background: transparent; }
    .cp-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--line);
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
    }
    .cp-table td {
        border-bottom: 1px solid var(--line);
        padding: 12px 14px;
    }
    .cp-table td:last-child { border-bottom: 0; }
    .cp-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: var(--coral);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }
    .cp-table .cp-num,
    .cp-table .cp-name,
    .cp-table .cp-fee { width: auto; white-space: normal; }
}
