
/* ============ Pella Eliminated Late Payment Penalties Entirely. ============ */
/* HERO SECTION CSS */
.qp-automated-area.qp-case-study-txt {
    text-align: left;
}
.hero-facts {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    margin-top: 30px;
}
.hf-item {
    border-left: 4px solid rgb(13 76 146);
    padding-left: 14px;
}
.hf-lbl {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 3px;
    font-weight: 600;
    color: #0d4c92;
}
.hf-val {
    font-size: 13px;
    font-weight: 400;
}

.hero-metric-block {
    background: #FCFCFD;
    border: 2px solid #fff;
    box-shadow: 0px 9px 20px rgba(46, 35, 94, 0.07);
    border-radius: 18px;
    padding: 33px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.hmb-head {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .12em;
    color: rgb(13 76 146);
    margin-bottom: 0px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,.09);
}
.hmb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,.07);
}
.n-green {
    color: #4ade80;
}
.hmb-num {
    font-size: 33px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.hmb-label {
    font-size: 15px;
    line-height: 1.45;
    text-align: right;
    max-width: 160px;
}
.hmb-label strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
    font-size: .82rem;
}
.n-blue {
    color: #60a5fa;
}
.n-violet {
    color: #c084fc;
}
.n-gold {
    color: #c9a84c;
}
.n-rose {
    color: #fb7185;
}

/* HERO SECTION CSS */
/* Pella Windows & Doors */
section.qp-case-study-challenges {
    padding: 60px 0px;
    background: #f8fafc;
}
.co-in {
    margin:  60px auto;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.co-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.co-hex {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    /* background: linear-gradient(135deg,#1e3a8a,#3b82f6); */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.co-name-block .co-name {
    font-size: 1rem;
    font-weight: 700;
    color: #141416;
}
.co-name-block .co-tagline {
    font-size: .75rem;
    color: #9898a6;
    margin-top: 1px;
}
.co-rule {
    width: 1px;
    height: 36px;
    background: #e5e4ec;
    flex-shrink: 0;
}
.co-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    justify-content: center;
}
.co-pill {
    font-size: 12px;
    background: #f7f5f0;
    border: 1px solid #d8d2c6;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: .04em;
}
.co-pill strong {
    font-weight: 700;
    color: #0d4c92;
}

.chal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chal-card {
    background: #FFF;
    border: 1.5px solid #e5e4ec;
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: border-color .2s,box-shadow .2s,transform .18s;
}
.chal-card:hover {
    border-color: #fca5a5;
    box-shadow: 0 4px 16px rgba(220,38,38,.08);
    transform: translateX(4px);
}
.c-ico {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fdf2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.c-ico svg {
    width: 15px;
    height: 15px;
    color: #c0392b;
}
.c-title {
    font-size: .88rem;
    font-weight: 700;
    color: #141416;
    margin-bottom: 3px;
    letter-spacing: -.01em;
}
.c-desc {
    font-size: .8rem;
    color: #6b6b7a;
    line-height: 1.55;
    margin: 0;
}
.qp-case-study-challenges-txt h2 {
    font-weight: 700;
    margin-bottom: 20px;
}

/* Pella Windows & Doors */
/* The Solution */
section.qp-case-study-solutions {
    padding: 60px 0px;
}
.qp-case-study-solutions-txt h2 {
    font-weight: 700;
    margin-bottom: 20px;
}
.sol-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.sol-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding-bottom: 28px;
    position: relative;
}
.sol-step::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,.07);
}
.ss-num {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid rgba(66,133,244,.3);
    color: #0052cc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    flex-shrink: 0;
    z-index: 1;
}
.ss-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}
.ss-desc {
    font-size: 14px;
    line-height: 1.65;
}
.sol-step::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 0;
    width: 1px;
    background: rgba(0,0,0,.08);
}
.sol-step:last-child:before {
    content: none;
}
/* The Solution */
/* Implementation Flow */
section.qp-case-study-implementation {
    padding: 60px 0px;
    background: #f8fafc;
}
.process-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    position: relative;
    margin-top: 48px;
}
.process-row::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 22px;
    right: 22px;
    height: 1px;
    background: linear-gradient(90deg,#0052cc,#d8d2c6);
    opacity: .3;
    z-index: 0;
}
.proc-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0px 0px;
    position: relative;
    z-index: 1;
}
.proc-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFF;
    border: 2px solid #e5e4ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 500;
    color: #0052cc;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07),0 1px 2px rgba(0,0,0,.05);
    transition: background .18s,border-color .18s;
}
.proc-title {
    font-size: .82rem;
    font-weight: 700;
    color: #141416;
    margin-bottom: 4px;
}
.proc-desc {
    font-size: .74rem;
    line-height: 1.5;
}
.proc-step:hover .proc-dot {
    background: #0052cc;
    border-color: #0052cc;
    color: #FFF;
}
/* Implementation Flow */
/* The Transformation */
section.qp-case-study-transformations {
    padding: 60px 0px;
}
.ba-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.14),0 4px 8px rgba(0,0,0,.06);
}
.ba-before {
    background: #252529;
}
.ba-side {
    padding: 36px 32px;
}
.ba-before .ba-badge {
    color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.8);
}
.ba-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}
.ba-before .ba-title {
    color: rgba(255,255,255,.8);
}
.ba-title {
    font-size: 1.3rem;
    margin-bottom: 22px;
    line-height: 1.2;
    font-weight: 600;
}
.ba-items {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.ba-before .ba-item {
    color: rgba(255,255,255,.8);
}
.ba-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .85rem;
    line-height: 1.5;
}
.ba-before .ba-item-dot {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.8);
}
.ba-item-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .7rem;
    font-weight: 700;
    margin-top: 1px;
}
.ba-after {
    background: #0052cc;
}
.ba-after  .ba-badge {
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
}
.ba-after  .ba-title {
    color: #FFF;
}
.ba-after  .ba-item {
    color: rgba(255,255,255,.9);
}
.ba-after  .ba-item-dot {
    background: rgba(255,255,255,.2);
    color: #FFF;
}
.ba-after  .ba-item {
    color: rgba(255,255,255,.9);
}
.ba-after .ba-item span {
    color: #FFF;
}
.ba-before .ba-item span {
    color: rgba(255,255,255,.8);
}

/* The Transformation */
/* Measurable Results */
section.qp-case-study-measurables {
    padding: 60px 0px;
    background: #f8fafc;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 4px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.14),0 4px 8px rgba(0,0,0,.06);
}
.res-tile {
    padding: 40px 32px;
    background: #FFF;
    transition: background .2s;
}
.res-tile:not(:nth-child(2)):not(:nth-child(5)) .rt-chip {
    background: #ede9e0;
}
.rt-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 22px;
}
.res-tile:not(:nth-child(2)):not(:nth-child(5)) .rt-num {
    color: #141416;
}
.rt-num {
    font-size: 3.8rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.03em;
    margin-bottom: 10px;
}
.res-tile:not(:nth-child(2)):not(:nth-child(5)) .rt-title {
    color: #141416;
}
.rt-title {
    font-size: .92rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.res-tile:not(:nth-child(2)):not(:nth-child(5)) .rt-desc {
    color: #9898a6;
}
.rt-desc {
    font-size: .8rem;
    line-height: 1.6;
}
.res-tile:nth-child(2) {
    background: #141416;
    transition: background .2s;
}
.res-tile:nth-child(5) {
    background: #0052cc;
    transition: background .2s;
}
.res-tile:nth-child(2) .rt-num {
    color: #c9a84c;
}
.res-tile:nth-child(2) .rt-chip {
    background: rgba(255,255,255,.9);
    color: #000;
}
.res-tile:nth-child(2) .rt-title {
    color: #FFF;
}
.res-tile:nth-child(2) .rt-desc {
    color: #FFF;
}
.res-tile:nth-child(5) .rt-chip {
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
}
.res-tile:nth-child(5) .rt-num {
    color: #FFF;
}
.res-tile:nth-child(5) .rt-title {
    color: #FFF;
}
.res-tile:nth-child(5) .rt-desc {
    color: #FFF;
}
.res-tile:hover {
    background: #e8f0fe;
}
.res-tile:nth-child(2):hover {
    background: #1c1c1f;
}
.res-tile:nth-child(5) {
    background: #0052cc;
    transition: background .2s;
}
/* Measurable Results */
/* Key Takeaways */
section.qp-success-takeaways {
    padding: 60px 0px 30px;
}
.tk-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 2px;
    border-radius: 18px;
    overflow: hidden;
}
.tk-card {
    padding: 36px 32px;
    background: #f8fafc;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: background .18s;
}
.tk-num {
    font-size: 2.4rem;
    font-weight: 600;
    color: #0052cc;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    text-align: center;
    padding-top: 2px;
}
.tk-title {
    font-size: .95rem;
    font-weight: 700;
    color: #141416;
    margin-bottom: 7px;
    letter-spacing: -.01em;
}
.tk-desc {
    font-size: .84rem;
    color: #6b6b7a;
    line-height: 1.65;
    margin: 0;
}
.tk-card:hover {
    background: #FFF;
}

/* Key Takeaways */
@media screen and (max-width:992px) {
.qp-success-banner {
    margin: 0 auto;
    text-align: center;
    margin-bottom: 40px;
}
.cta-block a.cta-btn {
    margin: 10px 0px;
}

}

@media screen and (max-width:768px) {
.process-row {
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
}
.process-row::before {
    content: none;
}
.results-grid {
    grid-template-columns: repeat(1,1fr);
}
.tk-grid {
    grid-template-columns: repeat(1,1fr);
}
.ba-wrap {
    grid-template-columns: 1fr;
}
    
}

.hb-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0052cc;
    display: inline-block;
    vertical-align: middle;
}

/* ============ Pella Eliminated Late Payment Penalties Entirely. ============ */
/* ============ Real Results from Real AP Transformations ============ */
.cf-tag-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.cf-pill.featured {
    background: #0052cc;
    color: #FFF;
}
.cf-pill {
    font-size: .63rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 4px 12px;
    border-radius: 4px;
}
.cf-pill.industry {
    background: #ffffff;
    color: #0052cc;
}
.cf-pill.region {
    background: #ede9e0;
    color: #475569;
}
.cf-company {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #0052cc;
    margin: 10px 0px;
    font-weight: 600;
}
h2.cf-title {
    font-weight: 700;
    margin-bottom: 20px;
}
.qp-case-study-main a {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: #0052cc;
    text-decoration: none;
    transition: gap .2s;
}
.qp-case-study-main a svg {
    display: inline-block;
    width: 20px;
}
.qp-case-study-main a svg path {
    color: #0052cc;
}
.cf-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
}
.ct {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    background: #f8fafc;
    color: #0352cc;
    border: 1px solid #e2e8f0;
}

.cst-right {
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-radius: 20px;
}
.cstr-head {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #0352cc;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.cstr-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
    margin-bottom: 10px;
}
.cstr-metric {
    background: #FFF;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 14px;
    transition: border-color .18s;
}
.c-teal {
    color: #0070c0;
}
.c-green2 {
    color: #0a7a58;
}
.c-am {
    color: #b45309;
}
.c-vi {
    color: #7c3aed;
}

.cm-num {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 5px;
}
.cm-lbl {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
}
.cm-sub {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.35;
}
.cfl-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #475569;
    margin-bottom: 6px;
}
.cfl-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0070c0;
    flex-shrink: 0;
}

/* ============ Real Results from Real AP Transformations ============ */