:root {
    --case-ink: #10213a;
    --case-muted: #607089;
    --case-line: #dfe7ec;
    --case-soft: #f4f8fb;
    --case-green: #13bfae;
    --case-green-dark: #078a7c;
    --case-action: #0e9f6e;
    --case-night: #10251f;
}

body.case-study-light-page main {
    overflow: visible;
}

body.case-study-light-page main > * {
    width: min(1180px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

/* Hero: open whitespace and a horizontal evidence summary, like the homepage. */
body.case-study-light-page .case-study-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 0 !important;
    padding: clamp(36px, 4vw, 52px) 0 clamp(30px, 3.5vw, 46px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.case-study-light-page .case-study-hero::before {
    display: none;
}

body.case-study-light-page .case-study-hero-copy {
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

body.case-study-light-page .case-study-hero-copy::after {
    display: none;
}

body.case-study-light-page .case-study-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--case-green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

body.case-study-light-page .case-study-hero .eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--case-green);
}

body.case-study-light-page .case-study-hero h1 {
    max-width: 1000px;
    margin: 18px auto 22px;
    color: var(--case-ink);
    font-size: clamp(40px, 4.4vw, 58px);
    line-height: 1.02;
    letter-spacing: -.065em;
    text-wrap: balance;
}

body.case-study-light-page .case-study-hero-copy > p {
    max-width: 820px;
    margin: 0 auto 12px;
    color: var(--case-muted);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.58;
}

body.case-study-light-page .case-badge-row,
body.case-study-light-page .case-trust-points,
body.case-study-light-page .case-study-actions {
    justify-content: center;
}

body.case-study-light-page .case-badge,
body.case-study-light-page .case-trust-points span {
    min-height: 34px;
    padding: 7px 11px;
    border-color: #c8eee2;
    border-radius: 9px;
    color: var(--case-green-dark);
    background: #e8fbf6;
    font-size: 11px;
    font-weight: 800;
}

body.case-study-light-page .case-study-actions {
    margin-top: 28px;
}

body.case-study-light-page .case-study-actions .primary-link,
body.case-study-light-page .case-study-actions .secondary-link,
body.case-study-light-page .case-library-card .primary-link {
    min-height: 50px;
    padding: 0 20px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
}

body.case-study-light-page .case-study-actions .primary-link,
body.case-study-light-page .case-library-card .primary-link {
    border-color: var(--case-action);
    color: #fff;
    background: var(--case-action);
    box-shadow: 0 11px 25px rgba(14, 159, 110, .16);
}

body.case-study-light-page .case-study-actions .secondary-link {
    border-color: var(--case-line);
    color: var(--case-ink);
    background: #fff;
}

body.case-study-light-page .case-study-hero-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    padding: 0;
    border: 1px solid var(--case-line);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

body.case-study-light-page .case-status-card-head {
    display: none;
}

body.case-study-light-page .case-status-card > div:not(.case-status-card-head) {
    display: grid;
    align-content: center;
    gap: 7px;
    min-height: 112px;
    padding: 22px 28px;
    border: 0;
}

body.case-study-light-page .case-status-card > div + div {
    border-left: 1px solid var(--case-line);
}

body.case-study-light-page .case-status-card div span {
    color: #7c8da3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
}

body.case-study-light-page .case-status-card div strong {
    margin: 0;
    color: var(--case-ink);
    font-size: clamp(17px, 1.7vw, 23px);
    line-height: 1.24;
    letter-spacing: -.035em;
}

body.case-study-light-page .case-hub-hero .case-study-hero-panel {
    grid-template-columns: .65fr 1fr 1.35fr;
    align-items: center;
    gap: 22px;
    padding: 20px 26px;
}

body.case-study-light-page .case-hub-hero .case-study-hero-panel > span {
    color: var(--case-green-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.case-study-light-page .case-hub-hero .case-study-hero-panel > strong {
    color: var(--case-ink);
    font-size: 28px;
    letter-spacing: -.05em;
}

body.case-study-light-page .case-hub-hero .case-study-hero-panel > p {
    margin: 0;
    color: var(--case-muted);
    font-size: 13px;
    line-height: 1.6;
}

body.case-study-light-page .case-hub-hero .case-study-engine-list {
    grid-column: 1 / -1;
    justify-content: center;
    padding-top: 18px;
    border-top: 1px solid var(--case-line);
}

/* Evidence Bento: same visual hierarchy as the homepage proof wall. */
.case-study-showcase {
    padding: 82px 0 96px;
}

.case-modern-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.case-modern-heading h2 {
    margin: 11px 0 14px;
    color: var(--case-ink);
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.03;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.case-modern-heading p {
    margin: 0;
    color: var(--case-muted);
    font-size: 17px;
    line-height: 1.7;
}

.case-bento-wall {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: 270px 230px;
    gap: 14px;
    margin-top: 36px;
}

.case-bento-card {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--case-line);
    border-radius: 17px;
    background: #eef3f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .055);
}

.case-bento-1 { grid-column: 1 / 7; grid-row: 1 / 3; }
.case-bento-2 { grid-column: 7 / 9; grid-row: 1; }
.case-bento-3 { grid-column: 9 / 11; grid-row: 1; }
.case-bento-4 { grid-column: 7 / 9; grid-row: 2; }
.case-bento-5 { grid-column: 9 / 11; grid-row: 2; }

.case-bento-card a {
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
}

.case-bento-card > a > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .35s ease;
}

.case-bento-main > a > img {
    object-position: 18% top;
}

.case-bento-card:hover > a > img {
    transform: scale(1.018);
}

.case-bento-card a::after {
    content: "";
    position: absolute;
    inset: 44% 0 0;
    background: linear-gradient(transparent, rgba(9, 23, 18, .7));
}

.case-bento-label {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 9px;
    color: #52657d;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(9px);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.case-bento-label img {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    object-fit: contain;
}

.case-bento-card figcaption {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 17px;
    left: 18px;
    display: grid;
    gap: 4px;
}

.case-bento-card figcaption strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.15;
}

.case-bento-main figcaption strong {
    font-size: 22px;
}

.case-bento-card figcaption span {
    color: rgba(255, 255, 255, .76);
    font-size: 10px;
    line-height: 1.45;
}

.case-bento-main figcaption span {
    font-size: 12px;
}

.case-showcase-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 14px;
    padding: 19px 22px;
    border: 1px solid var(--case-line);
    border-radius: 14px;
    background: #fff;
}

.case-showcase-summary span {
    color: var(--case-muted);
    font-size: 13px;
}

.case-showcase-summary span strong {
    display: block;
    color: var(--case-ink);
    font-size: 24px;
    letter-spacing: -.045em;
}

.case-showcase-summary a {
    color: var(--case-green-dark);
    font-weight: 800;
}

/* Roadmap becomes a compact horizontal navigator instead of an article sidebar. */
body.case-study-light-page .case-study-notice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 24px;
    padding: 18px 22px;
    border: 1px solid #f0dfb7;
    border-radius: 14px;
    background: #fffaf0;
    box-shadow: none;
}

body.case-study-light-page .case-study-notice strong {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    color: #a46b0b;
    background: #fff1d4;
    font-size: 10px;
}

body.case-study-light-page .case-study-notice p {
    margin: 0;
    color: #6c665a;
    font-size: 13px;
}

body.case-study-light-page .case-study-layout {
    display: block;
}

body.case-study-light-page .case-toc {
    position: sticky;
    z-index: 8;
    top: 84px;
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    overflow: hidden;
    margin: 0 0 24px;
    border: 1px solid var(--case-line);
    border-radius: 0 0 15px 15px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
}

body.case-study-light-page .case-toc-head {
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 18px 20px;
    border-right: 1px solid var(--case-line);
    background: #f5faf9;
    border-radius: 12px;
}

body.case-study-light-page .case-toc-head strong {
    color: var(--case-ink);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.case-study-light-page .case-toc-head span {
    color: #8391a4;
    font-size: 10px;
    font-weight: 700;
}

body.case-study-light-page .case-toc-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
}

body.case-study-light-page .case-toc a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 52px;
    padding: 11px 14px;
    background: #fff;
    color: #607089;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

body.case-study-light-page .case-toc a::before {
    content: none !important;
    display: none !important;
}

body.case-study-light-page .case-toc-number {
    color: var(--case-green-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}

body.case-study-light-page .case-toc a:hover {
    color: var(--case-green-dark);
    background: #e8fbf6;
}

/* Spacious homepage-style sections. */
body.case-study-light-page .case-study-main {
    min-width: 0;
}

body.case-study-light-page .case-study-section {
    position: relative;
    margin: 0;
    padding: clamp(72px, 8vw, 108px) 0;
    border: 0;
    border-radius: 0;
    color: var(--case-ink);
    background: transparent;
    box-shadow: none;
}

body.case-study-light-page .case-study-section#workflow,
body.case-study-light-page .case-study-section#measurable,
body.case-study-light-page .case-study-section#reveals,
body.case-study-light-page .case-study-snapshot {
    margin: 30px 0;
    padding: clamp(46px, 6vw, 72px);
    border: 1px solid var(--case-line);
    border-radius: 24px;
    background: var(--case-soft);
}

body.case-study-light-page .section-heading.compact {
    max-width: 820px;
    margin: 0 auto 38px;
    text-align: center;
}

body.case-study-light-page .section-heading.compact::before {
    display: none !important;
}

body.case-study-light-page .section-heading.compact > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--case-green-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

body.case-study-light-page .section-heading.compact > span::before,
body.case-study-light-page .case-study-main > .case-study-section .section-heading > span::before,
body.case-study-light-page main > .case-study-section .section-heading > span::before {
    content: none !important;
    display: none !important;
}

body.case-study-light-page .section-heading.compact > span .bi {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #ccece2;
    border-radius: 8px;
    color: var(--case-green-dark);
    background: #e8fbf6;
    font-size: 14px;
    line-height: 1;
}

body.case-study-light-page .section-heading.compact h2 {
    max-width: 820px;
    margin: 11px auto 14px;
    color: var(--case-ink);
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.04;
    letter-spacing: -.055em;
    text-wrap: balance;
}

body.case-study-light-page .section-heading.compact p {
    max-width: 760px;
    margin: 0 auto 12px;
    color: var(--case-muted);
    font-size: 16px;
    line-height: 1.72;
}

/* KPI strip: numbers read in one glance, just like the homepage proof summary. */
body.case-study-light-page .case-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 34px;
    padding: 0;
    border: 1px solid var(--case-line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

body.case-study-light-page .case-proof-card {
    min-width: 0;
    min-height: 154px;
    padding: 24px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

body.case-study-light-page .case-proof-card + .case-proof-card {
    border-left: 1px solid var(--case-line);
}

body.case-study-light-page .case-proof-card-featured {
    background: #effbf6;
}

body.case-study-light-page .case-proof-card strong {
    color: var(--case-ink);
    font-family: inherit;
    font-size: clamp(28px, 3vw, 43px);
    letter-spacing: -.055em;
}

body.case-study-light-page .case-proof-card span {
    margin-top: 9px;
    color: #233852;
    font-size: 13px;
    font-weight: 800;
}

body.case-study-light-page .case-proof-card p {
    margin-top: 6px;
    color: var(--case-muted);
    font-size: 11px;
    line-height: 1.55;
}

/* Rich two-column workflow cards with mini product interfaces and icons. */
body.case-study-light-page .case-numbered-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.case-study-light-page .case-step-card {
    position: relative;
    overflow: hidden;
    display: block !important;
    grid-template-columns: none !important;
    min-height: 380px;
    padding: 24px;
    border: 1px solid var(--case-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: none;
}

body.case-study-light-page .case-step-number {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    width: auto !important;
    height: auto !important;
    margin-bottom: 18px;
    padding: 0 !important;
    border-radius: 0 !important;
    color: var(--case-green-dark);
    background: transparent !important;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

body.case-study-light-page .case-step-number::after {
    content: " · workflow step";
    margin-left: 4px;
}

.case-step-visual {
    overflow: hidden;
    height: 178px;
    margin-bottom: 22px;
    border: 1px solid var(--case-line);
    border-radius: 13px;
    background: #f6fafc;
}

.case-mini-window {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 45px;
    padding: 0 14px;
    border-bottom: 1px solid var(--case-line);
    background: #fff;
}

.case-mini-window > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4dfe6;
}

.case-mini-window > span:first-child {
    background: var(--case-green);
}

body.case-study-light-page .case-numbered-grid .case-mini-window strong {
    display: inline;
    margin-left: 6px;
    color: #52657d;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0;
}

.case-mini-score {
    display: grid;
    gap: 12px;
    padding: 22px;
}

body.case-study-light-page .case-numbered-grid .case-mini-score b,
body.case-study-light-page .case-numbered-grid .case-mini-score small {
    color: #52657d;
    font-size: 11px;
}

.case-mini-score i {
    overflow: hidden;
    height: 10px;
    border-radius: 99px;
    background: #dce7ec;
}

.case-mini-score em {
    display: block;
    width: 84%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--case-green), #73ead1);
}

.case-mini-rows {
    display: grid;
    gap: 7px;
    padding: 14px;
}

.case-mini-rows i {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 29px;
    padding: 0 10px;
    border: 1px solid var(--case-line);
    border-radius: 8px;
    color: #52657d;
    background: #fff;
    font-size: 9px;
    font-style: normal;
}

body.case-study-light-page .case-numbered-grid .case-mini-rows em {
    padding: 4px 6px;
    border-radius: 5px;
    color: var(--case-green-dark);
    background: #e8fbf6;
    font-style: normal;
}

.case-mini-bots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 132px;
}

.case-mini-bots i {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid #cfe7df;
    border-radius: 13px;
    color: var(--case-green-dark);
    background: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

body.case-study-light-page .case-numbered-grid .case-mini-bots b {
    position: absolute;
    margin-top: 92px;
    color: #607089;
    font-size: 9px;
}

.case-mini-chart {
    position: relative;
    height: 132px;
    background-image: linear-gradient(#e7eef2 1px, transparent 1px), linear-gradient(90deg, #e7eef2 1px, transparent 1px);
    background-size: 36px 36px;
}

.case-mini-chart svg {
    position: absolute;
    inset: 26px 18px 16px;
    width: calc(100% - 36px);
    height: calc(100% - 42px);
}

.case-mini-chart path {
    fill: none;
    stroke: var(--case-green);
    stroke-width: 4;
    stroke-linecap: round;
}

.case-mini-answer {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.case-mini-answer i {
    display: block;
    height: 8px;
    border-radius: 99px;
    background: #dce6ec;
}

.case-mini-answer i:nth-child(1) { width: 88%; }
.case-mini-answer i:nth-child(2) { width: 70%; }
.case-mini-answer i:nth-child(3) { width: 80%; }
body.case-study-light-page .case-numbered-grid .case-mini-answer b {
    width: max-content;
    margin-top: 4px;
    padding: 7px 9px;
    border-radius: 7px;
    color: var(--case-green-dark);
    background: #e8fbf6;
    font-size: 9px;
}

.case-mini-loop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 132px;
}

.case-mini-loop i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--case-action);
    font-style: normal;
    font-weight: 800;
}

.case-mini-loop span {
    width: 36px;
    height: 2px;
    background: #bcdcd2;
}

body.case-study-light-page .case-numbered-grid .case-mini-loop b {
    position: absolute;
    margin-top: 90px;
    color: #607089;
    font-size: 9px;
}

.case-step-copy strong {
    display: block;
    margin: 0 0 9px;
    color: var(--case-ink);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.035em;
}

.case-step-copy p {
    margin: 0;
    color: var(--case-muted);
    font-size: 13px;
    line-height: 1.65;
}

/* Icon-supported outcome and list cards. */
body.case-study-light-page .case-track-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.case-study-light-page .case-track-grid article {
    min-height: 250px;
    padding: 22px;
    border: 1px solid var(--case-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.case-info-icon {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 26px;
    place-items: center;
    border-radius: 13px;
    color: var(--case-green-dark);
    background: #e8fbf6;
}

.case-info-icon::before {
    content: none !important;
    display: none !important;
}

.case-info-icon .bi {
    font-size: 19px;
    line-height: 1;
}

.case-info-icon::before {
    font-size: 19px;
    font-weight: 800;
}

.case-info-icon-1::before { content: "⌁"; }
.case-info-icon-2::before { content: "◎"; }
.case-info-icon-3::before { content: "↗"; }
.case-info-icon-4::before { content: "▦"; }

.case-info-index {
    display: block;
    color: #8a99ad;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}

body.case-study-light-page .case-track-grid strong {
    margin: 10px 0 9px;
    color: var(--case-ink);
    font-size: 19px;
}

body.case-study-light-page .case-track-grid p {
    color: var(--case-muted);
    font-size: 12px;
    line-height: 1.65;
}

body.case-study-light-page .case-clean-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    max-width: 980px;
    margin: 28px auto 0;
}

body.case-study-light-page .case-clean-list li {
    position: relative;
    min-height: 82px;
    padding: 19px 20px 19px 56px;
    border: 1px solid var(--case-line);
    border-radius: 14px;
    color: #31435b;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .035);
    font-size: 13px;
    line-height: 1.55;
}

body.case-study-light-page .case-clean-list li::before {
    content: "✓";
    position: absolute;
    top: 20px;
    left: 20px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 8px;
    color: var(--case-green-dark);
    background: #e1f9f1;
    font-size: 12px;
}

/* Evidence tables and the secondary answer-engine gallery. */
body.case-study-light-page .case-evidence-table-wrap {
    margin-top: 30px;
    border-color: var(--case-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

body.case-study-light-page .case-evidence-table caption {
    padding: 19px 21px;
    color: var(--case-ink);
    font-size: 15px;
}

body.case-study-light-page .case-evidence-table th,
body.case-study-light-page .case-evidence-table td {
    padding: 16px 20px;
    border-color: var(--case-line);
}

body.case-study-light-page .case-evidence-table thead th {
    color: #607089;
    background: #f2faf7;
}

body.case-study-light-page .case-evidence-table tbody th {
    color: var(--case-ink);
}

body.case-study-light-page .case-evidence-table tbody td:nth-child(2) {
    color: var(--case-green-dark);
}

body.case-study-light-page .case-subsection-heading {
    margin-top: 84px;
}

body.case-study-light-page .case-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 28px;
}

body.case-study-light-page .case-screenshot-card {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--case-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

body.case-study-light-page .case-screenshot-card a {
    display: block;
    overflow: hidden;
    margin: 9px;
    border-radius: 11px;
    background: #f4f8fb;
}

body.case-study-light-page .case-screenshot-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top center;
}

body.case-study-light-page .case-screenshot-card figcaption {
    padding: 14px 18px 19px;
}

body.case-study-light-page .case-screenshot-card figcaption strong {
    margin: 0 0 5px;
    color: var(--case-ink);
    font-size: 16px;
}

body.case-study-light-page .case-screenshot-card figcaption span {
    color: var(--case-muted);
    font-size: 11px;
}

body.case-study-light-page .case-crawler-card {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--case-line);
    border-radius: 16px;
    background: #f4f8fb;
    box-shadow: none;
}

body.case-study-light-page .case-crawler-card h3 {
    color: var(--case-ink);
}

body.case-study-light-page .case-crawler-list span,
body.case-study-light-page .case-study-engine-list span {
    min-height: 32px;
    padding: 6px 10px;
    border-color: #cfe8df;
    border-radius: 8px;
    color: #456078;
    background: #fff;
    font-size: 10px;
}

body.case-study-light-page .case-source-note {
    border-left-color: var(--case-green);
    border-radius: 0 11px 11px 0;
    color: #5c6d82;
    background: #eefaf6;
}

/* Case library cards use icon-led UI panels rather than generic article tiles. */
body.case-study-light-page .case-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

body.case-study-light-page .case-library-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 430px;
    padding: 24px;
    border: 1px solid var(--case-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}

body.case-study-light-page .case-library-card::before {
    content: none !important;
    display: none !important;
}

body.case-study-light-page .case-library-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 28px;
    place-items: center;
    border-radius: 15px;
    color: var(--case-green-dark);
    background: #e8fbf6;
    font-size: 21px;
    line-height: 1;
}

body.case-study-light-page .case-library-card::before {
    content: "↗";
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 28px;
    place-items: center;
    border-radius: 15px;
    color: var(--case-green-dark);
    background: #e8fbf6;
    font-size: 21px;
    font-weight: 800;
}

body.case-study-light-page .case-library-card:nth-child(2)::before { content: "◎"; }
body.case-study-light-page .case-library-card:nth-child(3)::before { content: "⌁"; }

body.case-study-light-page .case-library-card h3 {
    margin: 16px 0 12px;
    color: var(--case-ink);
    font-size: clamp(22px, 2.2vw, 29px);
    line-height: 1.08;
    letter-spacing: -.05em;
}

body.case-study-light-page .case-library-card p {
    color: var(--case-muted);
    font-size: 13px;
    line-height: 1.65;
}

body.case-study-light-page .case-library-proof {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--case-line);
}

body.case-study-light-page .case-library-card .primary-link {
    width: 100%;
    margin-top: 18px;
}

/* Closing blocks. */
body.case-study-light-page .case-evidence-standards {
    margin: 32px 0;
    padding: 55px;
    border: 1px solid #bce5d8;
    border-radius: 22px;
    background: #effbf6;
}

body.case-study-light-page .case-study-cta {
    position: relative;
    overflow: hidden;
    margin: 44px 0 90px;
    padding: clamp(52px, 7vw, 82px);
    border: 0;
    border-radius: 25px;
    color: #fff;
    background: var(--case-action);
    box-shadow: 0 22px 52px rgba(8, 121, 90, .16);
}

body.case-study-light-page .case-study-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .15;
    background-image: linear-gradient(rgba(255, 255, 255, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .55) 1px, transparent 1px);
    background-size: 36px 36px;
}

body.case-study-light-page .case-study-cta > * {
    position: relative;
    z-index: 1;
}

body.case-study-light-page .case-study-cta .eyebrow {
    color: #d8fff3;
}

body.case-study-light-page .case-study-cta h2 {
    max-width: 800px;
    margin: 12px auto;
    color: #fff;
    font-size: clamp(34px, 4.5vw, 56px);
}

body.case-study-light-page .case-study-cta p {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    color: #e0f8f0;
}

body.case-study-light-page .case-study-cta .primary-link {
    color: var(--case-green-dark);
    background: #fff;
}

body.case-study-light-page .case-study-cta .secondary-link {
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

/* Published evidence charts: compact, percentage-led, and export-ready. */
body.case-study-light-page .case-live-charts {
    width: min(1180px, calc(100% - 48px));
    margin: 10px auto;
    padding: clamp(58px, 7vw, 84px) 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.case-study-light-page .case-live-charts .section-heading.compact {
    margin-bottom: 22px;
}

body.case-study-light-page .case-chart-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

body.case-study-light-page .case-chart-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #ccece2;
    border-radius: 999px;
    color: #39536a;
    background: rgba(255, 255, 255, .88);
    font-size: 12px;
    font-weight: 700;
}

body.case-study-light-page .case-chart-meta .bi {
    color: var(--case-green-dark);
    font-size: 14px;
}

body.case-study-light-page .case-chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

body.case-study-light-page .case-chart-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid #d8e4e9;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 28px rgba(16, 33, 58, .045);
}

body.case-study-light-page .case-chart-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

body.case-study-light-page .case-chart-card > header span {
    display: block;
    margin-bottom: 5px;
    color: var(--case-green-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.case-study-light-page .case-chart-card h3 {
    margin: 0;
    color: var(--case-ink);
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

body.case-study-light-page .case-chart-card > p {
    min-height: 64px;
    margin: 0 0 15px;
    color: var(--case-muted);
    font-size: 13px;
    line-height: 1.65;
}

body.case-study-light-page .case-chart-card button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #bfe3da;
    border-radius: 10px;
    color: var(--case-green-dark);
    background: #eefbf7;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

body.case-study-light-page .case-chart-card button:hover:not(:disabled) {
    border-color: var(--case-action);
    color: #fff;
    background: var(--case-action);
    transform: translateY(-1px);
}

body.case-study-light-page .case-chart-card button:focus-visible {
    outline: 3px solid rgba(19, 191, 174, .25);
    outline-offset: 2px;
}

body.case-study-light-page .case-chart-card button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

body.case-study-light-page .case-chart-canvas {
    position: relative;
    height: 235px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.case-study-light-page .case-chart-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

body.case-study-light-page .case-chart-card:first-child .case-chart-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.case-study-light-page .case-chart-values li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    color: #4c6076;
    background: #f2f7f8;
    font-size: 12px;
}

body.case-study-light-page .case-chart-values li span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.case-study-light-page .case-chart-values strong {
    color: var(--case-ink);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

body.case-study-light-page .case-chart-unavailable {
    display: grid;
    min-height: 270px;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 28px;
    border: 1px dashed #c9d8de;
    border-radius: 14px;
    color: var(--case-muted);
    background: #f8fafb;
    text-align: center;
}

body.case-study-light-page .case-chart-unavailable .bi {
    color: var(--case-green-dark);
    font-size: 24px;
}

body.case-study-light-page .case-chart-unavailable strong {
    color: var(--case-ink);
}

body.case-study-light-page .case-chart-unavailable span {
    max-width: 360px;
    font-size: 12px;
    line-height: 1.6;
}

body.case-study-light-page .case-chart-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    max-width: 820px;
    margin: 20px auto 0;
    color: var(--case-muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

body.case-study-light-page .case-chart-note .bi {
    margin-top: 1px;
    color: var(--case-green-dark);
}

body.case-study-light-page .case-live-data-guide,
body.case-study-light-page .case-analysis-guide {
    padding-top: clamp(58px, 7vw, 88px);
    padding-bottom: clamp(58px, 7vw, 88px);
}

body.case-study-light-page .case-intent-grid,
body.case-study-light-page .case-analysis-flow {
    display: grid;
    border-top: 1px solid var(--case-line);
    border-bottom: 1px solid var(--case-line);
}

body.case-study-light-page .case-intent-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.case-study-light-page .case-analysis-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.case-study-light-page .case-intent-grid article,
body.case-study-light-page .case-analysis-flow article {
    min-width: 0;
    padding: 28px 24px;
}

body.case-study-light-page .case-intent-grid article + article,
body.case-study-light-page .case-analysis-flow article + article {
    border-left: 1px solid var(--case-line);
}

body.case-study-light-page .case-intent-grid .bi {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 19px;
    place-items: center;
    border-radius: 10px;
    color: var(--case-green-dark);
    background: #e8fbf6;
    font-size: 18px;
}

body.case-study-light-page .case-intent-grid h3,
body.case-study-light-page .case-analysis-flow h3 {
    margin: 0 0 10px;
    color: var(--case-ink);
    font-size: 18px;
    line-height: 1.28;
    letter-spacing: -.025em;
}

body.case-study-light-page .case-intent-grid p,
body.case-study-light-page .case-analysis-flow p {
    margin: 0;
    color: var(--case-muted);
    font-size: 13px;
    line-height: 1.72;
}

body.case-study-light-page .case-analysis-flow article > span {
    display: block;
    margin-bottom: 15px;
    color: var(--case-green-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

body.case-study-light-page .case-context-links {
    max-width: 900px;
    margin: 24px auto 0;
    color: var(--case-muted);
    font-size: 13px;
    line-height: 1.75;
    text-align: center;
}

body.case-study-light-page .case-context-links a {
    color: var(--case-green-dark);
    font-weight: 750;
    text-decoration: underline;
    text-decoration-color: #a5ddd1;
    text-underline-offset: 3px;
}

body.case-study-light-page .case-study-faq {
    padding-top: clamp(54px, 6vw, 76px);
    padding-bottom: clamp(54px, 6vw, 76px);
}

body.case-study-light-page .case-faq-list {
    max-width: 880px;
    margin: 0 auto;
    border-top: 1px solid var(--case-line);
}

body.case-study-light-page .case-faq-list details {
    border-bottom: 1px solid var(--case-line);
}

body.case-study-light-page .case-faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 10px;
    color: var(--case-ink);
    font-size: 16px;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

body.case-study-light-page .case-faq-list summary::-webkit-details-marker {
    display: none;
}

body.case-study-light-page .case-faq-list summary .bi {
    flex: 0 0 auto;
    color: var(--case-green-dark);
    transition: transform .18s ease;
}

body.case-study-light-page .case-faq-list details[open] summary .bi {
    transform: rotate(45deg);
}

body.case-study-light-page .case-faq-list p {
    max-width: 760px;
    margin: -4px 0 0;
    padding: 0 34px 22px 2px;
    color: var(--case-muted);
    font-size: 14px;
    line-height: 1.75;
}

@media (max-width: 1040px) {
    body.case-study-light-page .case-toc {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    body.case-study-light-page .case-toc-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.case-study-light-page .case-study-hero h1 {
        font-size: clamp(43px, 8vw, 68px);
    }

    .case-bento-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 350px 230px 230px;
    }

    .case-bento-1 { grid-column: 1 / -1; grid-row: 1; }
    .case-bento-2 { grid-column: 1; grid-row: 2; }
    .case-bento-3 { grid-column: 2; grid-row: 2; }
    .case-bento-4 { grid-column: 1; grid-row: 3; }
    .case-bento-5 { grid-column: 2; grid-row: 3; }

    body.case-study-light-page .case-proof-grid,
    body.case-study-light-page .case-track-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.case-study-light-page .case-proof-card:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--case-line);
    }

    body.case-study-light-page .case-proof-card:nth-child(4) {
        border-top: 1px solid var(--case-line);
    }

    body.case-study-light-page .case-library-grid {
        grid-template-columns: 1fr;
    }

    body.case-study-light-page .case-library-card {
        min-height: 0;
    }

    body.case-study-light-page .case-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.case-study-light-page .case-chart-card:first-child {
        grid-column: 1 / -1;
    }

    body.case-study-light-page .case-intent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.case-study-light-page .case-intent-grid article:nth-child(3) {
        border-top: 1px solid var(--case-line);
        border-left: 0;
    }

    body.case-study-light-page .case-intent-grid article:nth-child(4) {
        border-top: 1px solid var(--case-line);
    }
}

@media (max-width: 720px) {
    body.case-study-light-page main > * {
        width: min(100% - 28px, 1180px);
    }

    body.case-study-light-page .case-study-hero {
        padding: 58px 0 54px;
    }

    body.case-study-light-page .case-study-hero h1 {
        font-size: clamp(37px, 11vw, 52px);
    }

    body.case-study-light-page .case-study-hero-copy > p {
        font-size: 15px;
    }

    body.case-study-light-page .case-study-hero-panel,
    body.case-study-light-page .case-hub-hero .case-study-hero-panel {
        grid-template-columns: 1fr;
        gap: 0;
    }

    body.case-study-light-page .case-status-card > div:not(.case-status-card-head) {
        min-height: 86px;
        padding: 18px 20px;
    }

    body.case-study-light-page .case-status-card > div + div {
        border-top: 1px solid var(--case-line);
        border-left: 0;
    }

    body.case-study-light-page .case-hub-hero .case-study-hero-panel > * {
        padding: 12px 0;
    }

    .case-study-showcase {
        padding: 60px 0;
    }

    .case-bento-wall {
        grid-template-columns: 1fr;
        grid-template-rows: 300px repeat(4, 220px);
    }

    .case-bento-1,
    .case-bento-2,
    .case-bento-3,
    .case-bento-4,
    .case-bento-5 {
        grid-column: 1;
    }

    .case-bento-1 { grid-row: 1; }
    .case-bento-2 { grid-row: 2; }
    .case-bento-3 { grid-row: 3; }
    .case-bento-4 { grid-row: 4; }
    .case-bento-5 { grid-row: 5; }

    .case-showcase-summary {
        grid-template-columns: 1fr;
    }

    .case-showcase-summary span,
    .case-showcase-summary a {
        padding: 10px 2px;
        border-bottom: 1px solid var(--case-line);
    }

    body.case-study-light-page .case-study-notice {
        grid-template-columns: 1fr;
    }

    body.case-study-light-page .case-toc {
        position: relative;
        top: auto;
        grid-template-columns: 1fr;
    }

    body.case-study-light-page .case-toc-head {
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 14px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--case-line);
    }

    body.case-study-light-page .case-study-section,
    body.case-study-light-page .case-study-section#workflow,
    body.case-study-light-page .case-study-section#measurable,
    body.case-study-light-page .case-study-section#reveals,
    body.case-study-light-page .case-study-snapshot {
        padding: 58px 0;
    }

    body.case-study-light-page .case-live-charts {
        width: min(100% - 28px, 1180px);
        margin: 18px auto;
        padding: 48px 0;
    }

    body.case-study-light-page .case-chart-grid {
        grid-template-columns: 1fr;
    }

    body.case-study-light-page .case-chart-card:first-child {
        grid-column: auto;
    }

    body.case-study-light-page .case-chart-card {
        padding: 17px;
    }

    body.case-study-light-page .case-chart-card > header {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    body.case-study-light-page .case-chart-card button {
        align-self: flex-start;
    }

    body.case-study-light-page .case-chart-card > p {
        min-height: 0;
    }

    body.case-study-light-page .case-chart-canvas,
    body.case-study-light-page .case-chart-card:first-child .case-chart-canvas {
        height: 230px;
        padding: 0;
    }

    body.case-study-light-page .case-chart-values {
        grid-template-columns: 1fr;
    }

    body.case-study-light-page .case-intent-grid,
    body.case-study-light-page .case-analysis-flow {
        grid-template-columns: 1fr;
    }

    body.case-study-light-page .case-intent-grid article + article,
    body.case-study-light-page .case-analysis-flow article + article,
    body.case-study-light-page .case-intent-grid article:nth-child(3),
    body.case-study-light-page .case-intent-grid article:nth-child(4) {
        border-top: 1px solid var(--case-line);
        border-left: 0;
    }

    body.case-study-light-page .case-intent-grid article,
    body.case-study-light-page .case-analysis-flow article {
        padding: 23px 3px;
    }

    body.case-study-light-page .case-study-section#workflow,
    body.case-study-light-page .case-study-section#measurable,
    body.case-study-light-page .case-study-section#reveals,
    body.case-study-light-page .case-study-snapshot {
        width: calc(100% + 0px);
        margin: 18px 0;
        padding-right: 18px;
        padding-left: 18px;
        border-radius: 18px;
    }

    body.case-study-light-page .section-heading.compact h2 {
        font-size: clamp(30px, 9vw, 42px);
    }

    body.case-study-light-page .case-proof-grid,
    body.case-study-light-page .case-numbered-grid,
    body.case-study-light-page .case-track-grid,
    body.case-study-light-page .case-clean-list,
    body.case-study-light-page .case-gallery {
        grid-template-columns: 1fr;
    }

    body.case-study-light-page .case-proof-card + .case-proof-card {
        border-top: 1px solid var(--case-line);
        border-left: 0;
    }

    body.case-study-light-page .case-step-card {
        min-height: 0;
        padding: 17px;
    }

    body.case-study-light-page .case-track-grid article {
        min-height: 0;
    }

    body.case-study-light-page .case-evidence-table {
        min-width: 0;
    }

    body.case-study-light-page .case-evidence-table thead {
        display: none;
    }

    body.case-study-light-page .case-evidence-table,
    body.case-study-light-page .case-evidence-table tbody,
    body.case-study-light-page .case-evidence-table tr,
    body.case-study-light-page .case-evidence-table th,
    body.case-study-light-page .case-evidence-table td {
        display: block;
        width: 100%;
    }

    body.case-study-light-page .case-evidence-table tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--case-line);
    }

    body.case-study-light-page .case-evidence-table th,
    body.case-study-light-page .case-evidence-table td,
    body.case-study-light-page .case-evidence-table tbody th,
    body.case-study-light-page .case-evidence-table tbody td:nth-child(2) {
        width: 100%;
        padding: 6px 0;
        border: 0;
    }

    body.case-study-light-page .case-evidence-table th::before,
    body.case-study-light-page .case-evidence-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: #8996a8;
        font-family: inherit;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    body.case-study-light-page .case-evidence-standards,
    body.case-study-light-page .case-study-cta {
        padding: 40px 22px;
        border-radius: 19px;
    }
}
