/* =========================================================
   FinTruction — Case Studies
   Infographic design system. Scoped to .cs-page (sits on top
   of the .qb-int-page integration theme: reuses qbi-hero,
   qbi-final-cta, cr-stick-contact; everything else is cs-*).
   Brand: teal #009282 / bright #0EAFA0 / ink #0E1F2A.
   ========================================================= */

.cs-page {
    --cs-teal: #009282;
    --cs-bright: #0EAFA0;
    --cs-ink: #0E1F2A;
    --cs-dark: #00293a;
    --cs-grey: #4a5b65;
    --cs-soft: #f6fafa;
    --cs-line: #e4edee;
    --cs-amber: #C0392B;        /* "before / problem" — reddish */
    --cs-amber-soft: #fcebe9;
    --cs-danger: #c0392b;
    --cs-card: #ffffff;
    --cs-wrap: 1180px;
    color: var(--cs-ink);
    background: #fff;
}

/* ---------- layout primitives ---------- */
.cs-wrap { width: 100%; max-width: var(--cs-wrap); margin: 0 auto; padding: 0 22px; }
.cs-section { padding: 78px 0; }
.cs-section--alt { background: var(--cs-soft); }
.cs-section--tight { padding: 54px 0; }
.cs-shead { max-width: 820px; margin: 0 auto 46px; text-align: center; }
.cs-shead.is-left { margin-left: 0; text-align: left; }

.cs-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: Manrope, system-ui, sans-serif; font-weight: 700;
    letter-spacing: 1.8px; text-transform: uppercase; font-size: 12.5px;
    color: var(--cs-teal); margin: 0 0 14px;
}
.cs-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cs-teal); border-radius: 2px; }
.cs-shead.is-center .cs-eyebrow::before { display: none; }
/* Before / After section labels — colour-coded pills so the two phases are obvious */
.cs-page .cs-eyebrow.is-before, .cs-page .cs-eyebrow.is-after { font-size: 13.5px; font-weight: 800; letter-spacing: 1.4px; padding: 7px 15px; border-radius: 999px; }
.cs-eyebrow.is-before { color: #9a2e23; background: var(--cs-amber-soft); }
.cs-eyebrow.is-after  { color: #066b5e; background: #e6f6f3; }
.cs-eyebrow.is-before::before, .cs-eyebrow.is-after::before { display: none; }

.cs-h2 {
    font-family: Lexend, Manrope, system-ui, sans-serif; font-weight: 900;
    letter-spacing: -0.025em; line-height: 1.14;
    font-size: clamp(27px, 3.4vw, 40px); margin: 0 0 16px; color: var(--cs-ink);
}
.cs-lead { font-size: 17.5px; line-height: 1.7; color: var(--cs-grey); font-weight: 600; margin: 0; }
.cs-hl { color: var(--cs-teal); }

/* ---------- hero two-column layout (bk-hero-* live in bookkeeping.css,
   which these pages don't load, so redefine the layout here) ---------- */
.cs-page .bk-hero-row { display: flex; gap: 48px; align-items: center; justify-content: space-between; }
.cs-page .qbi-hero-content { flex: 1 1 auto; min-width: 0; }
.cs-page .bk-hero-visual { flex: 0 0 auto; width: 100%; max-width: 400px; }
@media (max-width: 980px) {
    .cs-page .bk-hero-row { flex-direction: column; align-items: flex-start; gap: 32px; }
    .cs-page .bk-hero-visual { max-width: 100%; }
    .cs-page .bk-hero-visual > div { margin-left: 0 !important; max-width: 460px; }
}

/* ---------- hero meta strip ---------- */
.cs-hero-meta {
    display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 26px;
    padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
}
.cs-meta-item { display: flex; flex-direction: column; gap: 3px; }
.cs-meta-k { font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 700; }
.cs-meta-v { font-size: 15.5px; color: #fff; font-weight: 700; }

/* ---------- redesigned hero: real-logo client card ---------- */
.cs-hero-card {
    width: 100%; max-width: 410px; margin-left: auto;
    background: linear-gradient(168deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px; padding: 24px 26px 22px;
    box-shadow: 0 34px 70px -34px rgba(0,0,0,.65);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cs-hero-card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; }
.cs-hero-card-logo { height: auto; max-height: 50px; max-width: 232px; width: auto; object-fit: contain; }
.cs-hero-card-flag {
    display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
    font-size: 11px; font-weight: 800; letter-spacing: .2px; color: #fff;
    background: rgba(255,193,67,.16); border: 1px solid rgba(255,193,67,.4);
    padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
.cs-hero-card-flag svg { width: 13px; height: 13px; color: #ffc043; }
.cs-hero-card-flag.is-teal { background: rgba(14,175,160,.16); border-color: rgba(14,175,160,.45); }
.cs-hero-card-flag.is-teal svg { color: var(--cs-bright); }
.cs-hero-card-rule { height: 1px; background: rgba(255,255,255,.14); margin: 20px 0; }
.cs-hero-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cs-hero-card-stat b { display: block; font-family: Lexend, sans-serif; font-weight: 900; font-size: 22px; color: #fff; letter-spacing: -.02em; line-height: 1; }
.cs-hero-card-stat b.tealnum { color: var(--cs-bright); }
.cs-hero-card-stat span { display: block; margin-top: 7px; font-size: 11px; color: rgba(255,255,255,.66); font-weight: 600; line-height: 1.3; }
.cs-hero-card-owner { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.cs-hero-owner-av { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.32); }
.cs-hero-owner-meta b { display: block; font-size: 13.5px; font-weight: 800; color: #fff; line-height: 1.25; }
.cs-hero-owner-meta span { display: block; font-size: 12px; color: rgba(255,255,255,.66); font-weight: 600; margin-top: 2px; }
@media (max-width: 980px) { .cs-page .bk-hero-visual .cs-hero-card { margin-left: 0; max-width: 460px; } }

/* ---------- snapshot metric cards ---------- */
.cs-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.cs-metric {
    background: var(--cs-card); border: 1px solid var(--cs-line); border-radius: 18px;
    padding: 26px 24px; position: relative; overflow: hidden;
    box-shadow: 0 12px 30px -22px rgba(14,31,42,.4);
}
.cs-metric::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cs-teal); }
.cs-metric.is-warn::before { background: var(--cs-amber); }
.cs-metric-val { font-family: Lexend, Manrope, sans-serif; font-weight: 900; font-size: clamp(30px, 3.6vw, 42px); line-height: 1; letter-spacing: -0.03em; color: var(--cs-ink); }
.cs-metric.is-warn .cs-metric-val { color: var(--cs-amber); }
.cs-metric-label { margin-top: 10px; font-weight: 800; font-size: 15px; color: var(--cs-ink); }
.cs-metric-sub { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--cs-grey); font-weight: 600; }

/* ---------- before / after split ---------- */
.cs-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.cs-ba-arrow { display: none; }
.cs-ba-card { border-radius: 20px; padding: 28px 26px; border: 1px solid var(--cs-line); background: #fff; }
.cs-ba-card.is-before { background: var(--cs-amber-soft); border-color: #f3d2cd; }
.cs-ba-card.is-after { background: linear-gradient(180deg,#f1fbf9, #ffffff); border-color: #cdeee8; }
.cs-ba-tag {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12.5px;
    letter-spacing: 1.2px; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; margin-bottom: 16px;
}
.cs-ba-card.is-before .cs-ba-tag { background: #f7d6d2; color: #9a2e23; }
.cs-ba-card.is-after .cs-ba-tag { background: #d2f1ea; color: #066b5e; }
.cs-ba-title { font-family: Lexend, sans-serif; font-weight: 900; font-size: 21px; letter-spacing: -.02em; margin: 0 0 16px; color: var(--cs-ink); }
.cs-ba-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.cs-ba-li { display: flex; gap: 11px; font-size: 15px; line-height: 1.55; font-weight: 600; color: #33454e; }
.cs-ba-ico { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; }
.cs-ba-card.is-before .cs-ba-ico { color: var(--cs-amber); }
.cs-ba-card.is-after .cs-ba-ico { color: var(--cs-teal); }

/* ---------- horizontal bar compare ---------- */
.cs-bars { display: flex; flex-direction: column; gap: 22px; max-width: 880px; margin: 0 auto; }
.cs-bar-row { }
.cs-bar-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.cs-bar-name { font-weight: 800; font-size: 15.5px; color: var(--cs-ink); }
.cs-bar-pair { display: flex; flex-direction: column; gap: 9px; }
.cs-bar { display: flex; align-items: center; gap: 12px; }
.cs-bar-key { flex: 0 0 64px; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--cs-grey); }
.cs-bar-track { flex: 1; height: 26px; background: #eef3f4; border-radius: 8px; overflow: hidden; }
.cs-bar-fill { display: block; height: 100%; border-radius: 8px; min-width: 2px; transition: width .8s ease; }
.cs-bar-fill.is-before { background: linear-gradient(90deg,#e08379,#C0392B); }
.cs-bar-fill.is-after { background: linear-gradient(90deg,#0EAFA0,#009282); }
.cs-bar-val { flex: 0 0 auto; font-weight: 800; font-size: 14.5px; color: var(--cs-ink); min-width: 90px; text-align: right; }

/* ---------- donut (composition) ---------- */
.cs-split { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.cs-donut { width: 230px; height: 230px; border-radius: 50%; margin: 0 auto; position: relative; }
.cs-donut::after {
    content: ""; position: absolute; inset: 26%; background: #fff; border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--cs-line);
}
.cs-donut-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 1; }
.cs-donut-mid b { font-family: Lexend, sans-serif; font-weight: 900; font-size: 22px; color: var(--cs-ink); letter-spacing: -.02em; }
.cs-donut-mid span { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--cs-grey); }
.cs-legend { display: flex; flex-direction: column; gap: 14px; }
.cs-leg { display: flex; align-items: center; gap: 13px; transition: transform .15s ease; }

/* ---- Interactive donut: hover a ring segment for a tooltip + highlight ---- */
.cs-donut-hit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; pointer-events: none; }
.cs-donut-seg { fill: #fff; fill-opacity: 0; pointer-events: auto; cursor: pointer; transition: fill-opacity .15s ease; }
.cs-donut-seg:hover { fill-opacity: .18; }
.cs-donut-mid { pointer-events: none; }

.cs-donut-tip {
    position: absolute; z-index: 5; left: 0; top: 0;
    pointer-events: none; white-space: nowrap;
    transform: translate(-50%, -118%);
    background: #06302b; color: #fff;
    padding: 8px 11px; border-radius: 10px;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
    opacity: 0; transition: opacity .14s ease;
}
.cs-donut-tip[hidden] { display: none; }
.cs-donut-tip.is-on { opacity: 1; }
.cs-donut-tip b { display: block; font-family: Lexend, sans-serif; font-weight: 800; font-size: 13.5px; letter-spacing: -.01em; }
.cs-donut-tip b i { font-style: normal; color: #8fe3d7; font-weight: 800; }
.cs-donut-tip s { display: block; text-decoration: none; font-size: 11.5px; color: rgba(255, 255, 255, .72); font-weight: 600; margin-top: 1px; }

/* legend row lifts + goes teal while its segment is hovered */
.cs-leg.is-active { transform: translateX(3px); }
.cs-leg.is-active .cs-leg-name { color: #009282; }
.cs-leg-dot { flex: 0 0 16px; width: 16px; height: 16px; border-radius: 5px; }
.cs-leg-body { flex: 1; }
.cs-leg-name { font-weight: 800; font-size: 15.5px; color: var(--cs-ink); }
.cs-leg-sub { font-size: 13px; color: var(--cs-grey); font-weight: 600; }
.cs-leg-val { font-weight: 800; font-size: 16px; color: var(--cs-ink); }

/* ---------- timeline ---------- */
.cs-timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 4px; }
.cs-timeline::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg,var(--cs-bright),var(--cs-teal)); border-radius: 2px; }
.cs-step { position: relative; padding: 0 0 30px 70px; }
.cs-step:last-child { padding-bottom: 0; }
.cs-step-num {
    position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
    background: #fff; border: 2px solid var(--cs-teal); color: var(--cs-teal);
    display: flex; align-items: center; justify-content: center; font-family: Lexend, sans-serif; font-weight: 900; font-size: 18px; z-index: 1;
    box-shadow: 0 0 0 5px #fff;
}
.cs-step-title { font-weight: 800; font-size: 17.5px; margin: 9px 0 7px; color: var(--cs-ink); }
.cs-step-body { font-size: 15px; line-height: 1.65; color: var(--cs-grey); font-weight: 600; margin: 0; }
.cs-step-tag { display: inline-block; margin-top: 9px; font-size: 12px; font-weight: 800; letter-spacing: .4px; color: var(--cs-teal); background: #e6f6f3; padding: 4px 10px; border-radius: 999px; }

/* ---- Alternate "milestone card" timeline (Hearth & Haus) ---- */
.cs-timeline.is-alt::before { left: 25px; background: repeating-linear-gradient(180deg, rgba(0,146,130,.6) 0 7px, transparent 7px 15px); }
.cs-timeline.is-alt .cs-step { padding: 0 0 16px 76px; }
.cs-timeline.is-alt .cs-step:last-child { padding-bottom: 0; }
.cs-timeline.is-alt .cs-step-num {
    top: 4px; width: 50px; height: 50px; border-radius: 14px;
    background: linear-gradient(145deg, var(--cs-bright), var(--cs-teal));
    border: none; color: #fff;
    box-shadow: 0 0 0 5px #fff, 0 12px 24px -10px rgba(0,146,130,.6);
}
.cs-timeline.is-alt .cs-step-c {
    background: #fff; border: 1px solid var(--cs-line); border-left: 3px solid var(--cs-bright);
    border-radius: 14px; padding: 17px 22px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 16px 34px -30px rgba(15,23,42,.42);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cs-timeline.is-alt .cs-step:hover .cs-step-c { transform: translateX(4px); border-left-color: var(--cs-teal); box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 22px 44px -28px rgba(15,23,42,.5); }
.cs-timeline.is-alt .cs-step-title { margin-top: 0; }
/* keep the filled badge from scaling like the outlined one */
.cs-page .cs-timeline.is-alt .cs-step:hover .cs-step-num { transform: none; box-shadow: 0 0 0 5px #fff, 0 14px 28px -10px rgba(0,146,130,.72); }

/* ---------- problem / fix cards ---------- */
.cs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.cs-card { background: #fff; border: 1px solid var(--cs-line); border-radius: 16px; padding: 24px; }
.cs-card-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.cs-card-ico svg { width: 23px; height: 23px; }
.cs-card.is-problem .cs-card-ico { background: var(--cs-amber-soft); color: var(--cs-amber); }
.cs-card.is-fix .cs-card-ico { background: #e6f6f3; color: var(--cs-teal); }
.cs-card-title { font-weight: 800; font-size: 16.5px; margin: 0 0 8px; color: var(--cs-ink); }
.cs-card-text { font-size: 14.5px; line-height: 1.6; color: var(--cs-grey); font-weight: 600; margin: 0; }
.cs-card-text b { color: var(--cs-ink); font-weight: 800; }
.cs-card.is-problem .cs-card-text b { color: var(--cs-amber); }

/* ---------- exhibit (annotated screenshot) ---------- */
.cs-exhibit { margin: 0; }
.cs-exhibit-frame {
    border-radius: 16px; overflow: hidden; border: 1px solid var(--cs-line);
    background: #fff; box-shadow: 0 30px 60px -34px rgba(14,31,42,.55);
}
.cs-exhibit-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; background: #0E1F2A; }
.cs-exhibit-bar i { width: 11px; height: 11px; border-radius: 50%; background: #44515c; display: inline-block; }
.cs-exhibit-bar i:nth-child(1){ background:#ff5f57; } .cs-exhibit-bar i:nth-child(2){ background:#febc2e; } .cs-exhibit-bar i:nth-child(3){ background:#28c840; }
.cs-exhibit-bar span { margin-left: 10px; font-size: 12.5px; color: #9fb1bb; font-weight: 700; letter-spacing: .4px; }
.cs-exhibit-frame img { display: block; width: 100%; height: auto; }
.cs-exhibit-cap { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: var(--cs-soft); border: 1px solid var(--cs-line); }
.cs-exhibit-cap.is-before { background: var(--cs-amber-soft); border-color: #f3d2cd; }
.cs-cap-badge { flex: 0 0 auto; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: var(--cs-teal); color: #fff; }
.cs-exhibit-cap.is-before .cs-cap-badge { background: var(--cs-amber); }
.cs-cap-text { font-size: 14px; line-height: 1.55; font-weight: 600; color: #33454e; }
.cs-cap-text b { color: var(--cs-ink); font-weight: 800; }
.cs-privacy { margin-top: 10px; font-size: 12px; color: #8497a0; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.cs-privacy svg { width: 14px; height: 14px; }

/* exhibit + text two-up */
.cs-twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cs-twoup.is-rev .cs-twoup-media { order: 2; }

/* ---------- dark stat strip ---------- */
.cs-strip { background: linear-gradient(135deg,var(--cs-dark),#0A4F4A); border-radius: 22px; padding: 40px 30px; }
.cs-strip-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 26px; text-align: center; }
.cs-strip-val { font-family: Lexend, sans-serif; font-weight: 900; font-size: clamp(28px,3.4vw,38px); color: #fff; letter-spacing: -.02em; line-height: 1; }
.cs-strip-val em { color: var(--cs-bright); font-style: normal; }
.cs-strip-label { margin-top: 10px; font-size: 13.5px; color: rgba(255,255,255,.78); font-weight: 600; line-height: 1.45; }

/* ---------- testimonial ---------- */
.cs-quote { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--cs-line); border-radius: 22px; padding: 38px 38px 32px; box-shadow: 0 24px 50px -34px rgba(14,31,42,.5); position: relative; }
.cs-quote-mark { font-family: Georgia, serif; font-size: 92px; line-height: .6; color: #d6ece8; position: absolute; top: 26px; left: 30px; }
.cs-quote-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.cs-quote-stars svg { width: 21px; height: 21px; color: #ffc043; }
.cs-quote-text { font-size: 18.5px; line-height: 1.72; font-weight: 600; color: #1f3038; margin: 0 0 24px; position: relative; z-index: 1; }
.cs-quote-text b { color: var(--cs-ink); font-weight: 800; }
.cs-quote-by { display: flex; align-items: center; gap: 14px; }
.cs-quote-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--cs-teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.cs-quote-meta { flex: 1; }
.cs-quote-name { font-weight: 800; font-size: 16.5px; color: var(--cs-ink); }
.cs-quote-role { font-size: 13.5px; color: var(--cs-grey); font-weight: 600; }
.cs-quote-src { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--cs-grey); background: var(--cs-soft); border: 1px solid var(--cs-line); padding: 7px 12px; border-radius: 999px; }
.cs-quote-src svg { width: 15px; height: 15px; }

/* ---------- services-used / crosslinks ---------- */
.cs-links { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; }
.cs-link-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--cs-line); border-radius: 14px; background: #fff; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.cs-link-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(14,31,42,.5); border-color: #cdeee8; }
.cs-link-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: #e6f6f3; color: var(--cs-teal); display: flex; align-items: center; justify-content: center; }
.cs-link-ico svg { width: 21px; height: 21px; }
.cs-link-t { font-weight: 800; font-size: 15.5px; color: var(--cs-ink); margin: 0 0 3px; }
.cs-link-d { font-size: 13px; color: var(--cs-grey); font-weight: 600; margin: 0; }

/* ---------- index hub ---------- */
.cs-index-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cs-next-wrap { max-width: 580px; margin: 0 auto; }
.cs-ix { display: flex; flex-direction: column; border: 1px solid var(--cs-line); border-radius: 22px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.cs-ix:hover { transform: translateY(-4px); box-shadow: 0 30px 56px -34px rgba(14,31,42,.55); }
.cs-ix-top { padding: 30px 30px 24px; background: linear-gradient(135deg,#0E1F2A,#0A4F4A); color: #fff; }
.cs-ix-kicker { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; color: var(--cs-bright); margin-bottom: 10px; }
.cs-ix-name { font-family: Lexend, sans-serif; font-weight: 900; font-size: 24px; letter-spacing: -.02em; margin: 0 0 8px; }
.cs-ix-sub { font-size: 14.5px; color: rgba(255,255,255,.82); font-weight: 600; line-height: 1.55; margin: 0; }
.cs-ix-body { padding: 24px 30px 28px; flex: 1; display: flex; flex-direction: column; }
.cs-ix-metrics { display: flex; gap: 22px; margin-bottom: 18px; flex-wrap: wrap; }
.cs-ix-m b { display: block; font-family: Lexend, sans-serif; font-weight: 900; font-size: 24px; color: var(--cs-teal); letter-spacing: -.02em; }
.cs-ix-m span { font-size: 12.5px; color: var(--cs-grey); font-weight: 600; }
.cs-ix-text { font-size: 14.5px; line-height: 1.6; color: var(--cs-grey); font-weight: 600; margin: 0 0 20px; flex: 1; }
.cs-ix-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--cs-teal); font-size: 15px; }
.cs-ix-cta svg { width: 18px; height: 18px; transition: transform .18s ease; }
.cs-ix:hover .cs-ix-cta svg { transform: translateX(4px); }

/* ---------- index hero: aggregate stats + arrow CTA ---------- */
.cs-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 800px; margin: 32px auto 0; }
.cs-hero-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 18px 14px; text-align: center; }
.cs-hero-stat b { display: block; font-family: Lexend, sans-serif; font-weight: 900; font-size: clamp(21px, 2.5vw, 27px); color: #fff; letter-spacing: -.02em; line-height: 1; }
.cs-hero-stat b em { color: var(--cs-bright); font-style: normal; }
.cs-hero-stat span { display: block; margin-top: 7px; font-size: 12px; color: rgba(255,255,255,.74); font-weight: 600; line-height: 1.4; }
.cs-page .qbi-hero-cta .cs-cta-arrow { width: 19px; height: 19px; margin-left: 2px; transition: transform .18s ease; vertical-align: middle; }
.cs-page .qbi-hero-cta:hover .cs-cta-arrow { transform: translateX(4px); }
@media (max-width: 720px) { .cs-hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- richer index cards ---------- */
.cs-ix-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cs-ix-logo { height: 40px; width: auto; max-width: 170px; object-fit: contain; filter: brightness(0) invert(1); opacity: .96; }
.cs-ix-badge { flex: 0 0 auto; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--cs-bright); background: rgba(14,175,160,.16); border: 1px solid rgba(14,175,160,.4); padding: 6px 11px; border-radius: 999px; }
.cs-ix-quote { display: flex; gap: 13px; align-items: flex-start; padding: 16px 17px; background: var(--cs-soft); border: 1px solid var(--cs-line); border-radius: 14px; margin-bottom: 18px; }
.cs-ix-quote-av { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 4px 12px -6px rgba(14,31,42,.5); }
.cs-ix-quote-stars { display: flex; gap: 2px; margin-bottom: 6px; }
.cs-ix-quote-stars svg { width: 14px; height: 14px; color: #ffc043; }
.cs-ix-quote-text { font-size: 13.5px; line-height: 1.5; color: #33454e; font-weight: 600; margin: 0 0 7px; }
.cs-ix-quote-by { font-size: 12.5px; font-weight: 800; color: var(--cs-ink); }
.cs-ix-quote-by span { color: var(--cs-grey); font-weight: 600; }
.cs-ix-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.cs-ix-tag { font-size: 11.5px; font-weight: 700; color: var(--cs-teal); background: #e6f6f3; padding: 5px 11px; border-radius: 999px; }

/* ---------- breadcrumb ---------- */
.cs-crumb { font-size: 13px; font-weight: 600; color: var(--cs-grey); padding: 18px 0 0; }
.cs-crumb a { color: var(--cs-grey); text-decoration: none; }
.cs-crumb a:hover { color: var(--cs-teal); }
.cs-crumb span { color: var(--cs-ink); }

/* ---------- annotated screenshot: hand-drawn marker circle ---------- */
.cs-shot { position: relative; line-height: 0; }
.cs-shot > img { display: block; width: 100%; height: auto; }
.cs-annot { position: absolute; overflow: visible; pointer-events: none; z-index: 3; }
.cs-annot-path {
    fill: none; stroke: #ee3b30; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.14));   /* static full circle, just a highlight */
}
.cs-annot-path.is-good { stroke: #0a9f8f; }

.cs-cap-badge.is-good { background: var(--cs-teal); }

/* ---------- scroll-reveal + interactive animation (JS-gated) ---------- */
.cs-anim [data-animate],
.cs-anim .cs-shead, .cs-anim .cs-metric, .cs-anim .cs-card, .cs-anim .cs-step,
.cs-anim .cs-ix, .cs-anim .cs-link-card, .cs-anim .cs-ba-card, .cs-anim .cs-leg,
.cs-anim .cs-hero-stat, .cs-anim .cs-strip, .cs-anim .cs-quote {
    opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.3,.8,.3,1);
}
.cs-anim [data-animate].is-in,
.cs-anim .cs-shead.is-in, .cs-anim .cs-metric.is-in, .cs-anim .cs-card.is-in, .cs-anim .cs-step.is-in,
.cs-anim .cs-ix.is-in, .cs-anim .cs-link-card.is-in, .cs-anim .cs-ba-card.is-in, .cs-anim .cs-leg.is-in,
.cs-anim .cs-hero-stat.is-in, .cs-anim .cs-strip.is-in, .cs-anim .cs-quote.is-in {
    opacity: 1; transform: none;
}
.cs-anim [data-animate].d1 { transition-delay: .08s; }
.cs-anim [data-animate].d2 { transition-delay: .16s; }
.cs-anim [data-animate].d3 { transition-delay: .24s; }
.cs-anim [data-animate].d4 { transition-delay: .32s; }

.cs-anim .cs-bar-fill { transform: scaleX(0); transform-origin: left; }
.cs-anim .cs-bars.is-in .cs-bar-fill { transform: scaleX(1); transition: transform 1.05s cubic-bezier(.3,.85,.25,1); }
.cs-anim .cs-bars.is-in .cs-bar-row:nth-child(2) .cs-bar-fill { transition-delay: .12s; }
.cs-anim .cs-bars.is-in .cs-bar-row:nth-child(3) .cs-bar-fill { transition-delay: .24s; }

.cs-anim .cs-donut { transform: scale(.86) rotate(-8deg); opacity: 0; }
.cs-anim .cs-donut.is-in { transform: none; opacity: 1; transition: transform .8s cubic-bezier(.3,.8,.3,1), opacity .7s ease; }

/* ---------- reconciliation-gap diagram ---------- */
.cs-gap { max-width: 760px; margin: 0 auto; }
.cs-gap-row { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 16px; margin-bottom: 14px; }
.cs-gap-label { font-weight: 800; font-size: 14px; color: var(--cs-ink); text-align: right; }
.cs-gap-track { position: relative; height: 40px; background: #eef3f4; border-radius: 10px; overflow: hidden; }
.cs-gap-zero { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #b9c6cc; left: 38%; z-index: 2; }
.cs-gap-fill { position: absolute; top: 0; bottom: 0; border-radius: 8px; }
.cs-gap-fill.neg { right: 62%; background: linear-gradient(90deg,#C0392B,#e0796f); }
.cs-gap-fill.pos { left: 38%; background: linear-gradient(90deg,#0EAFA0,#009282); }
.cs-anim .cs-gap-fill { transform: scaleX(0); }
.cs-gap-fill.neg { transform-origin: right; }
.cs-gap-fill.pos { transform-origin: left; }
.cs-anim .cs-gap.is-in .cs-gap-fill { transform: scaleX(1); transition: transform 1s cubic-bezier(.3,.85,.25,1); }
.cs-gap-val { font-weight: 800; font-size: 15px; color: var(--cs-ink); min-width: 104px; text-align: right; }
.cs-gap-val.neg { color: var(--cs-amber); }
.cs-gap-caption { text-align: center; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--cs-grey); }
.cs-gap-caption b { color: var(--cs-amber); font-weight: 800; }
@media (max-width: 560px){ .cs-gap-row{ grid-template-columns: 84px 1fr; } .cs-gap-val{ grid-column: 2; text-align:left; min-width:0; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .cs-ba { grid-template-columns: 1fr; }
    .cs-split { grid-template-columns: 1fr; gap: 28px; }
    .cs-twoup { grid-template-columns: 1fr; gap: 26px; }
    .cs-twoup.is-rev .cs-twoup-media { order: 0; }
    .cs-index-grid { grid-template-columns: 1fr; }
    .cs-section { padding: 56px 0; }
}
@media (max-width: 520px) {
    .cs-bar-key { flex-basis: 50px; }
    .cs-bar-val { min-width: 72px; font-size: 13px; }
    .cs-quote { padding: 30px 24px 26px; }
    .cs-quote-text { font-size: 16.5px; }
}

/* =========================================================
   PREMIUM REFINEMENT LAYER
   UI/UX Pro Max direction: B2B Service -> "Trust & Authority + Minimal / Soft-UI".
   Tabular figures, consistent soft elevation, hover lift, glowing timeline nodes,
   premium testimonial, accessible focus rings. Scoped .cs-page (wins on specificity).
   ========================================================= */

/* Tabular figures for every data number — precise, no horizontal jitter */
.cs-page .cs-metric-val, .cs-page .cs-strip-val, .cs-page .cs-bar-val,
.cs-page .cs-ix-m b, .cs-page .cs-gap-val, .cs-page .cs-hero-card-stat b,
.cs-page .cs-leg-val, .cs-page .cs-hero-stat b {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* Refined section rhythm + heading polish */
.cs-page .cs-section { padding: 84px 0; }
.cs-page .cs-section--tight { padding: 60px 0; }
.cs-page .cs-shead { margin-bottom: 52px; }
.cs-page .cs-eyebrow { font-size: 12px; letter-spacing: 2px; }
.cs-page .cs-h2 { letter-spacing: -0.03em; }
.cs-page .cs-lead { color: #465862; }

/* Consistent soft elevation + hover lift (Soft-UI evolution) */
.cs-page .cs-metric, .cs-page .cs-card {
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 14px 30px -20px rgba(15,23,42,.30);
    transition: transform .22s cubic-bezier(.3,.8,.3,1), box-shadow .22s ease, border-color .22s ease;
}
.cs-page .cs-metric:hover, .cs-page .cs-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 26px 46px -24px rgba(15,23,42,.42);
}
.cs-page .cs-metric-val { font-size: clamp(29px, 3.5vw, 42px); }
.cs-page .cs-metric::before { width: 4px; border-radius: 0 4px 4px 0; }

/* Dark stat strip: dividers between items + deeper premium feel */
.cs-page .cs-strip { background: linear-gradient(135deg, #0c2230, #0a4f4a); box-shadow: 0 34px 64px -34px rgba(0,0,0,.6); }
.cs-page .cs-strip-grid > div { position: relative; }
.cs-page .cs-strip-grid > div + div::before {
    content: ""; position: absolute; left: -13px; top: 50%; transform: translateY(-50%);
    height: 48px; width: 1px; background: rgba(255,255,255,.14);
}
@media (max-width: 700px) { .cs-page .cs-strip-grid > div + div::before { display: none; } }

/* Timeline: stronger rail + glowing nodes + node pop on hover */
.cs-page .cs-timeline::before { background: linear-gradient(180deg, var(--cs-bright), var(--cs-teal) 55%, rgba(0,146,130,.14)); }
.cs-page .cs-step-num {
    background: linear-gradient(180deg, #ffffff, #f2fbf9);
    box-shadow: 0 0 0 5px #fff, 0 10px 22px -10px rgba(0,146,130,.55);
    transition: transform .2s ease, box-shadow .2s ease;
}
.cs-page .cs-step:hover .cs-step-num { transform: scale(1.07); box-shadow: 0 0 0 5px #fff, 0 14px 26px -10px rgba(0,146,130,.7); }

/* Bars: cleaner track */
.cs-page .cs-bar-track { background: #eef3f5; box-shadow: inset 0 0 0 1px rgba(15,23,42,.03); }

/* Donut: soft ring shadow */
.cs-page .cs-donut { box-shadow: 0 18px 40px -24px rgba(15,23,42,.4); }

/* Testimonial: premium card with accent rail + avatar ring */
.cs-page .cs-quote { border-radius: 24px; box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 34px 64px -38px rgba(15,23,42,.5); overflow: hidden; }
.cs-page .cs-quote::after {
    content: ""; position: absolute; left: 0; top: 30px; bottom: 30px; width: 4px;
    border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--cs-bright), var(--cs-teal));
}
.cs-page .cs-quote-text { font-size: 19.5px; }
.cs-page .cs-quote-av { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #bfe8e2; }

/* Index cards: premium elevation */
.cs-page .cs-ix { box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 28px 52px -36px rgba(15,23,42,.5); }

/* Accessibility: visible focus rings on all interactive elements (priority #1) */
.cs-page a:focus-visible, .cs-page .cs-link-card:focus-visible,
.cs-page .cs-ix:focus-visible, .cs-page .qbi-hero-cta:focus-visible {
    outline: 3px solid #15a392;
    outline-offset: 3px; border-radius: 12px;
}

/* Respect reduced motion for hover transforms too */
@media (prefers-reduced-motion: reduce) {
    .cs-page .cs-metric:hover, .cs-page .cs-card:hover,
    .cs-page .cs-step:hover .cs-step-num { transform: none; }
}

/* ---------- "Before -> After at a glance" band (sits just under the hero) ---------- */
/* ===== Before / After comparison table ===== */
.cs-cmp-wrap {
    max-width: 940px; margin: 0 auto;
    background: #fff; border: 1px solid var(--cs-line); border-radius: 18px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 26px 50px -34px rgba(15,23,42,.34);
}
.cs-cmp { width: 100%; border-collapse: collapse; }
.cs-cmp th, .cs-cmp td { text-align: left; padding: 17px 26px; vertical-align: middle; }
.cs-cmp thead th {
    font-family: Lexend, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .6px;
    text-transform: uppercase; border-bottom: 1px solid var(--cs-line);
}
.cs-cmp-h-metric { color: #67787f; background: #f7fafa; }
.cs-cmp-h-before { color: #9a2e23; background: var(--cs-amber-soft); width: 27%; }
.cs-cmp-h-after  { color: #066b5e; background: #e6f6f3; width: 27%; }
.cs-cmp tbody tr + tr td { border-top: 1px solid var(--cs-line); }
.cs-cmp tbody tr:hover td { background: #fafcfc; }
.cs-cmp-metric { font-weight: 800; font-size: 15px; color: var(--cs-ink); }
.cs-cmp-before {
    font-family: Lexend, sans-serif; font-weight: 900; letter-spacing: -.02em;
    font-size: clamp(16px, 2vw, 21px); color: var(--cs-amber); font-variant-numeric: tabular-nums;
}
.cs-cmp-before s { text-decoration-thickness: 2px; text-decoration-color: rgba(192,57,43,.5); }
.cs-cmp-after {
    font-family: Lexend, sans-serif; font-weight: 900; letter-spacing: -.02em;
    font-size: clamp(17px, 2.2vw, 23px); color: var(--cs-teal); font-variant-numeric: tabular-nums;
}
.cs-cmp-check { width: 15px; height: 15px; color: var(--cs-bright); vertical-align: -2px; margin-right: 6px; }
/* H&H accent variant — spotlight the After column */
.cs-cmp--accent .cs-cmp-h-after { background: #d8f1ec; }
.cs-cmp--accent td.cs-cmp-after { background: #effaf7; box-shadow: inset 3px 0 0 var(--cs-bright); }
.cs-cmp--accent tbody tr:hover td.cs-cmp-after { background: #e6f6f2; }
@media (max-width: 600px) {
    .cs-cmp th, .cs-cmp td { padding: 13px 15px; }
    .cs-cmp-metric { font-size: 13.5px; }
    .cs-cmp thead th { font-size: 10.5px; letter-spacing: .4px; }
}

/* =========================================================
   POLISH PASS 2 — quote-mark fix, hero logo chip, creative hero-meta
   ========================================================= */

/* Testimonial: move the decorative quote mark out of the stars/text (was overlapping) */
.cs-page .cs-quote-mark { top: 10px; right: 30px; left: auto; font-size: 86px; color: #e7f5f2; z-index: 0; }
.cs-page .cs-quote-stars, .cs-page .cs-quote-text, .cs-page .cs-quote-by { position: relative; z-index: 1; }

/* Hero client card: solid white logo chip so the H&H mark + name read clearly on the dark hero */
.cs-hero-logo-chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 9px 15px 9px 12px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.cs-hero-logo-emblem { height: 30px; width: auto; display: block; }
.cs-hero-logo-name { font-family: Lexend, sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: #1e3a8a; white-space: nowrap; }
/* Moonz: full logo on the dark card (no white chip) + distinct light name banner */
.cs-hero-brand { display: inline-flex; align-items: center; gap: 13px; }
.cs-hero-brand-logo { height: 46px; width: auto; display: block; }
.cs-hero-brand-name { font-family: Lexend, sans-serif; font-weight: 800; font-size: 16.5px; letter-spacing: -.01em; color: #fff; line-height: 1.2; }

/* Hero meta: turn the plain label/value row into accented glass cards */
.cs-page .cs-hero-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; border-top: 0; padding-top: 0; margin-top: 30px; }
.cs-page .cs-meta-item { position: relative; overflow: hidden; gap: 5px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 13px 14px 13px 18px; }
.cs-page .cs-meta-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--cs-bright), var(--cs-teal)); }
.cs-page .cs-meta-k { color: var(--cs-bright); }
@media (max-width: 760px) { .cs-page .cs-hero-meta { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   RESPONSIVE PASS — tablet (iPad) + mobile. Uses .cs-page specificity
   so it overrides the refinement-layer section padding.
   ========================================================= */

/* Tablet / iPad (<=1024px) */
@media (max-width: 1024px) {
    .cs-page .cs-section { padding: 68px 0; }
    .cs-page .cs-shead { margin-bottom: 42px; }
    .cs-page .qbi-hero h1 { font-size: clamp(30px, 5.4vw, 46px); }
}

/* iPad portrait / large phone (<=820px) */
@media (max-width: 820px) {
    .cs-page .cs-section { padding: 56px 0; }
    .cs-page .cs-section--tight { padding: 42px 0; }
    .cs-page .cs-shead { margin-bottom: 34px; }
    .cs-page .cs-wrap { padding: 0 20px; }
    /* hero card no longer floats right once stacked */
    .cs-page .bk-hero-visual .cs-hero-card { margin: 0; max-width: 520px; }
    .cs-page .cs-cmp-wrap { margin-top: 34px; }
}

/* Phone (<=560px) */
@media (max-width: 560px) {
    .cs-page .cs-wrap { padding: 0 16px; }
    .cs-page .cs-section { padding: 46px 0; }
    .cs-page .cs-section--tight { padding: 36px 0; }
    .cs-page .cs-metrics { gap: 14px; }
    .cs-page .cs-metric { padding: 22px 20px; border-radius: 14px; }
    .cs-page .cs-cards { gap: 14px; }
    .cs-page .cs-card { padding: 20px; }
    .cs-page .cs-hero-card { padding: 20px; border-radius: 18px; }
    .cs-page .cs-hero-card-stat b { font-size: 18px; }
    .cs-page .cs-hero-card-stat span { font-size: 10.5px; }
    .cs-page .cs-strip { padding: 28px 18px; border-radius: 18px; }
    .cs-page .cs-timeline { padding-left: 0; }
    .cs-page .cs-step { padding-left: 60px; }
    .cs-page .cs-step-num { width: 42px; height: 42px; font-size: 16px; }
    .cs-page .cs-timeline::before { left: 20px; }
    .cs-page .cs-exhibit-bar span { font-size: 10.5px; }
    .cs-page .cs-donut { width: 200px; height: 200px; }
    .cs-page .cs-quote-text { font-size: 16px; }
    .cs-page .cs-quote-mark { font-size: 64px; top: 8px; right: 20px; }
}

/* never let an exhibit or any media force horizontal scroll */
.cs-page img, .cs-page svg { max-width: 100%; }
.cs-page .cs-exhibit-frame { max-width: 100%; }

/* ---------- Client section: text + visual "what they do" card ---------- */
.cs-client { display: grid; grid-template-columns: 1.25fr .85fr; gap: 48px; align-items: center; }
.cs-client-text .cs-shead { margin: 0; max-width: none; }
.cs-client-card { background: #fff; border: 1px solid var(--cs-line); border-radius: 18px; padding: 26px 28px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 36px -24px rgba(15,23,42,.3); }
.cs-client-card-h { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 12.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--cs-teal); margin-bottom: 16px; }
.cs-client-card-h svg { width: 18px; height: 18px; }
.cs-svc-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.cs-svc-chip { font-size: 14px; font-weight: 700; color: var(--cs-ink); background: var(--cs-soft); border: 1px solid var(--cs-line); border-radius: 999px; padding: 9px 15px; }
.cs-client-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--cs-line); font-size: 13.5px; color: var(--cs-grey); font-weight: 600; line-height: 1.55; }
@media (max-width: 820px) { .cs-client { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- metric-card icon chip ---------- */
.cs-metric-ico { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: #e6f6f3; color: var(--cs-teal); margin-bottom: 14px; }
.cs-metric-ico svg { width: 21px; height: 21px; }
.cs-metric.is-warn .cs-metric-ico { background: var(--cs-amber-soft); color: var(--cs-amber); }

/* ---------- in-section visual sub-heading ---------- */
.cs-subhead { text-align: center; font-family: Lexend, sans-serif; font-weight: 800; font-size: clamp(19px, 2.4vw, 24px); letter-spacing: -.02em; color: var(--cs-ink); margin: 0 0 8px; }
.cs-sublead { text-align: center; max-width: 700px; margin: 0 auto 26px; font-size: 15px; color: var(--cs-grey); font-weight: 600; line-height: 1.6; }

/* ---------- emphasis callout (e.g. payroll/compliance) ---------- */
.cs-callout { background: linear-gradient(180deg, #f1fbf9, #ffffff); border: 1px solid #cdeee8; border-radius: 20px; padding: 30px 32px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 40px -26px rgba(15,23,42,.3); }
.cs-callout-h { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.cs-callout-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: #e6f6f3; color: var(--cs-teal); display: flex; align-items: center; justify-content: center; }
.cs-callout-ico svg { width: 23px; height: 23px; }
.cs-callout-h h3 { font-family: Lexend, sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--cs-ink); margin: 0; }
.cs-callout-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cs-callout-item { display: flex; gap: 11px; }
.cs-callout-item svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--cs-teal); margin-top: 1px; }
.cs-callout-item b { display: block; font-weight: 800; font-size: 14.5px; color: var(--cs-ink); margin-bottom: 3px; }
.cs-callout-item span { font-size: 13.5px; color: var(--cs-grey); font-weight: 600; line-height: 1.5; }
@media (max-width: 760px) { .cs-callout-grid { grid-template-columns: 1fr; gap: 16px; } .cs-callout { padding: 24px; } }

/* ---------- "sneak peek from a client call" photo card ---------- */
.cs-callpeek { max-width: 430px; margin: 30px auto 0; }
.cs-callpeek-shot { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--cs-line); box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 30px 60px -30px rgba(14,31,42,.55); background: #000; }
.cs-callpeek-img { display: block; width: 100%; height: auto; }
.cs-callpeek-badge { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; background: var(--cs-teal); color: #fff; font-family: Lexend, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .2px; padding: 8px 13px; border-radius: 999px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.55); }
.cs-callpeek-badge svg { width: 14px; height: 14px; }
.cs-callpeek-cap { margin: 12px auto 0; max-width: 400px; text-align: center; font-size: 13px; color: #67787f; font-weight: 600; line-height: 1.55; }

/* ---------- center the trailing (odd) row of card grids ---------- */
.cs-page .cs-cards { display: flex; flex-wrap: wrap; justify-content: center; }
.cs-page .cs-cards > .cs-card { flex: 1 1 280px; max-width: 360px; }

/* ---------- hero client-card: higher-contrast stats ---------- */
.cs-page .cs-hero-card-stat b, .cs-page .cs-hero-card-stat b.tealnum { color: #ffffff; }
.cs-page .cs-hero-card-stat span { color: rgba(255,255,255,.82); }
.cs-page .cs-hero-card-stats { gap: 14px; }
.cs-page .qbi-hero h1 { line-height: 1.12; }

/* breathing room above the reconciliation-gap diagram (sits under the problem cards) */
.cs-page .cs-gap { margin-top: 52px; }
@media (max-width: 560px) { .cs-page .cs-gap { margin-top: 38px; } }

/* index hero credibility stats: higher contrast (white numbers, brighter labels) */
.cs-page .cs-hero-stat b em { color: #ffffff; }
.cs-page .cs-hero-stat span { color: rgba(255,255,255,.85); }
