
.pv-page .hero-section {
    height: 635px;
    position: relative;
}
.pv-page .hero-section::after{
    background: linear-gradient(102deg, #080134 34.86%, rgba(8, 1, 52, 0.30) 50.84%);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    content: "";
}
/* Render covers the whole hero (no dark band above it) */
.pv-page .hero-section .hero-bg {
    top: 0;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center bottom;
}
.pv-page .hero-section .di-hero-content {
    margin-top: 80px;
}
.pv-page .hero-section .di-hero-title {
    margin-top: 10px;
    line-height: 72px;
}
.pv-page .hero-section .di-chip {
    text-transform: uppercase;
}
.pv-page .hero-section .di-accent-line {
    margin: 26px 0 22px;
}
.pv-page .hero-section .di-hero-sub {
    max-width: 545px;
    line-height: 36px;
    margin-bottom: 23px;
}
/* Floating stat cards: AI range card on top (right aligned),
   confidence + market rate cards side by side beneath it. */
.pv-hero-cards {
    position: absolute;
    z-index: 4;
    top: 308px;
    right: 15px;
    display: grid;
    grid-template-columns: auto auto;
    gap: 18px 23px;
    justify-content: end;
}
.pv-float-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 0 24px rgba(0, 0, 0, .1);
    padding: 12px 18px;
}
/* Icon chip: CSS-drawn tinted circle with the glyph centred on top.
   Tint is set by a modifier class on .pv-fc-ico (.is-green / .is-purple). */
.pv-float-card .pv-fc-ico {
    width: 37px;
    height: 37px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #efe3fb; /* soft purple tint (default) */
}
.pv-float-card .pv-fc-ico img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}
.pv-float-card .pv-fc-ico.is-green {
    background: #deffe6;
}
.pv-float-card .pv-fc-ico.is-purple {
    background: #efe3fb;
}
.pv-fc-txt {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pv-fc-label {
    font-size: 12px;
    font-weight: 500;
    color: #878787;
    text-transform: uppercase;
}
.pv-fc-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-500);
}
.pv-rate .pv-fc-value {
    text-transform: uppercase;
}
.pv-fc-value.is-green {
    color: #00c92f;
    font-size: 24px;
}
/* Progress bar inside a floating stat card */
.pv-fc-bar {
    display: block;
    width: 100%;
    min-width: 160px;
    height: 5px;
    margin-top: 4px;
    border-radius: 40px;
    background: #dcdcdc;
    overflow: hidden;
}
.pv-fc-bar-fill {
    display: block;
    height: 100%;
    border-radius: 40px;
}
.pv-fc-bar-fill.is-purple { background: #9900d0; }
.pv-fc-bar-fill.is-pink { background: #ff0077; }
.pv-ai-range {
    grid-column: 1 / -1;
    justify-self: end;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 15px;
    row-gap: 6px;
    padding: 18px 22px 14px;
}
.pv-ai-range .pv-fc-ico {
    grid-row: 1;
}
.pv-ai-range .pv-fc-chart {
    grid-column: 2;
    width: 100%;
    max-width: 196px;
    height: 38px;
}

/* ============================================================
   FLOW OF WORK
============================================================ */
/* Flow + cards read as one white block (overrides the shared
   alternating tint on even .di-section). */
.di-section.pv-flow-section {
    background: var(--white);
    padding-bottom: 0;
}
.pv-flow {
    margin-top: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    gap: 10px;
}
/* Dotted connector behind the step icons */
.pv-flow::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 6%;
    right: 6%;
    border-top: 2px dotted #c9c9c9;
    z-index: 0;
}
/* Chevron between steps */
.pv-flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    right: -15px;
    width: 20px;
    height: 20px;
    background: var(--white) url('../images/pv/ico-arrow-right-step.svg') center / 20px no-repeat;
}
.pv-flow-step {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}
.pv-flow-ico {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}
.pv-flow-ico img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.pv-flow-label {
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: var(--black);
}

/* ============================================================
   THREE DETAIL CARDS
============================================================ */
.di-section.pv-cards-section {
    background: var(--white) url('../images/flow-of-work-bg.svg') center bottom / 100% auto no-repeat;
}
.di-section.pv-cards-section .di-section-head .di-title{padding-top: 0;}
.pv-cards {
    display: flex;
    gap: 15px;
    align-items: stretch;
}
/* Legal page — 2 x 2 grid variant of the detail cards */

.pv-cards.ldd-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.pv-cards.ldd-cards .pv-card {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
}
/* Project & Developer page — card icon that ships its own gradient tile */
.pv-card-ico.pdi-card-ico {
    background: none;
    border-radius: 7px;
    overflow: hidden;
}
.pv-card-ico.pdi-card-ico img {
    width: 60px;
    height: 60px;
}
/* Card 03 (Technical Due Diligence) — stacked progress bars */
.pv-progress-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.pv-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 10px;
}
.pv-progress-bar {
    display: block;
    width: 100%;
    height: 10px;
    border-radius: 40px;
    background: #dcdcdc;
    overflow: hidden;
}
.pv-progress-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #f60074 0%, #ab00e1 100%);
}

/* Card 02 — mini horizontal flow diagram */
.pv-flow-box {
    margin-top: 30px;
    background: #fff4f4;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.pv-flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
}
.pv-flow-node img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.pv-flow-node em {
    font-style: normal;
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    color: var(--black);
}
.pv-flow-arrow {
    flex: 0 0 24px;
    height: 2px;
    position: relative;
    background: #c9a0b2;
    margin-top: -14px;
}
.pv-flow-arrow::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid #c9a0b2;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}
.pv-card {
    flex: 1 1 0;
    min-width: 0;
    background: var(--white);
    border: 1px solid #ffc4d7;
    border-radius: 16px;
    box-shadow: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.pv-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.pv-card-ico {
    width: 60px;
    height: 60px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pv-card-ico.is-gradient {
    background: linear-gradient(97.8deg, #9b00c9 8.43%, #c500ff 95.54%);
}
.pv-card-ico img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.pv-card-num {
    font-size: 70px;
    line-height: 60px;
    font-weight: 700;
    background: linear-gradient(90deg, #f60074 0%, #ab00e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: .2;
}
.pv-card-title {
    margin-top: 20px;
    font-size: 20px;
    line-height: 20px;
    font-weight: 600;
    color: var(--gray-500);
}
.pv-card-desc {
    margin-top: 25px;
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    color: var(--gray-500);
}
.pv-check-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}
.pv-check-list li {
    padding-left: 30px;
    position: relative;
    font-size: 14px;
    line-height: 26px;
    color: var(--gray-500);
}
.pv-check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    background: url('../images/pv/ico-check-pink.svg') center / contain no-repeat;
}
/* Card 01 — rate table */
.pv-rate-table {
    margin-top: 30px;
    background: #fff4f4;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}
.pv-rate-row {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 35px;
    border-bottom: 1px solid #f0dede;
    font-size: 12px;
    color: var(--gray-500);
}
.pv-rate-row:last-child {
    border-bottom: 0;
}
.pv-rate-row strong {
    font-weight: 600;
}
/* Card 02 — map */
.pv-card-map {
    margin-top: auto;
    border-radius: 8px;
    overflow: hidden;
    height: 146px;
}
.pv-card-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Card 03 — stats box */
.pv-stats-box {
    margin-top: auto;
    background: #eeedf8;
    border-radius: 8px;
    height: 146px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 24px;
}
.pv-stat-70 {
    text-align: center;
    display: flex;
    flex-direction: column;
}
.pv-stat-70 .pv-stat-small {
    font-size: 14px;
    line-height: 24px;
    color: var(--black);
}
.pv-stat-70 .pv-stat-big {
    font-size: 24px;
    line-height: 34px;
    font-weight: 700;
    color: #f70050;
}
.pv-stat-70 .pv-stat-cap {
    font-size: 14px;
    line-height: 19px;
    color: var(--black);
    margin-top: 8px;
}
.pv-stat-divider {
    width: 1px;
    height: 88px;
    background: var(--gray-200);
}
.pv-stat-benefits {
    display: flex;
    flex-direction: column;
}
.pv-stat-benefits li {
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
    color: var(--black);
}
/* Request a Call Back pill */
.pv-callback-wrap {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}
.pv-callback-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 30px;
    border-radius: 12px;
    background: #00234f;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}
.pv-callback-btn img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);
}
.pv-callback-btn:hover {
    opacity: .92;
}

/* ============================================================
   CONNECTED INTELLIGENCE
============================================================ */
.di-section.pv-ecosystem {
    background: #f5f8fe;
}
.pv-eco-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.di-section-body.pv-eco-links{
    margin-top: 30px;
}
.pv-eco-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 60px;
    background: var(--white);
    border: 1px solid var(--gray-500);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
}
.pv-eco-btn em {
    font-size: 14px;
}
/* .pv-eco-btn:hover {
    background: #f5f8fe;
} */

/* ============================================================
   DATA & INSIGHTS ENGINE — 7-card grid additions
   The cards reuse the shared detail-card primitives above
   (.pv-cards .ldd-cards, .pv-card, .pv-card-ico.is-gradient,
   .pv-card-num, .pv-card-title, .pv-card-desc, .pv-check-list,
   .pv-rate-table / .pv-rate-row, .pv-callback-wrap /
   .pv-callback-btn). Only the pieces unique to this page's
   Data & Insights Engine section live here. Figma: node 1584-9778.
============================================================ */
/* White glyph sits on the shared gradient icon tile */
.pv-cards-section .pv-card-ico.is-gradient img {
    width: 34px;
    height: 34px;
}
/* Card 01 — twin stat tables side by side */
.die-stat-cols {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.die-stat-cols .pv-rate-table {
    margin-top: 0;
}
/* Cards 02 & 06 — layered area charts */
.die-chart {
    margin-top: auto;
    position: relative;
    width: 100%;
    height: 160px;
    padding-top: 30px;
}
.die-chart::before {
    /* faint horizontal gridlines */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background-image: repeating-linear-gradient(
        to top,
        #eee 0,
        #eee 1px,
        transparent 1px,
        transparent 32.5px
    );
}
.die-chart img {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
}
/* Card 05 — map image */
.die-map {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    min-height: 260px;
    flex: 1 1 auto;
}
.die-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Card 07 — full width, Liveability score pills */
.pv-cards.ldd-cards .pv-card.die-card-full {
    flex: 1 1 100%;
}
.die-scores {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
}
.die-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 9px;
    background: #e1effe;
    font-size: 14px;
    line-height: normal;
    color: var(--gray-700);
}
.die-score strong {
    font-weight: 700;
}
/* "Overall" sits on its own row, full width */
.die-score.is-overall {
    grid-column: 1 / -1;
}

@media (max-width: 540px) {
    .container { padding: 0 15px; }

    /* ---- Hero ---- */
    .pv-page .hero-section {
        height: auto;
        padding-bottom: 50px;
    }
    /* .pv-page .hero-section::after {
        background: linear-gradient(180deg, rgba(8, 1, 52, 0.55) 0%, #080134 85%);
        background: inear-gradient(102deg, #080134 0.72%, rgba(8, 1, 52, 0.93) 19.35%, rgba(8, 1, 52, 0.39) 98%, rgba(8, 1, 52, 0.30) 98.01%);
;
    } */
    .pv-page .hero-section .di-hero-content {
        margin-top: 40px;
    }
    .pv-page .hero-section .di-hero-title {
        margin-top: 5px;
        font-size: 30px;
        line-height: 38px;
    }
    .pv-page .hero-section .di-accent-line {
        margin: 20px 0;
    }
    .pv-page .hero-section .di-hero-sub {
        max-width: 100%;
        font-size: 14px;
        line-height: 22px;
        margin-bottom: 24px;
    }
    /* Floating stat cards hidden on mobile (not shown in Figma mobile frame) */
    .pv-hero-cards { display: none; }

    /* ---- Flow of work: single swipeable row ---- */
    .di-section.pv-flow-section { padding: 30px 0; }
    .pv-flow {
        margin: 30px -15px 0;
        padding: 0 15px 4px;
        justify-content: flex-start;
        gap: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .pv-flow::-webkit-scrollbar { display: none; }
    /* Container-wide line can't follow the scroll — draw it per step */
    .pv-flow::before { display: none; }
    .pv-flow-step {
        flex: 0 0 118px;
        gap: 10px;
    }
    .pv-flow-step:not(:last-child)::before {
        content: '';
        position: absolute;
        top: 22px;
        left: calc(50% + 28px);
        right: calc(-50% + 28px);
        border-top: 2px dotted #c9c9c9;
        z-index: -1;
    }
    /* Chevron sits midway between two steps */
    .pv-flow-step:not(:last-child)::after {
        top: 14px;
        right: -8px;
        width: 16px;
        height: 16px;
        background-size: 16px;
    }
    .pv-flow-ico { width: 44px; height: 44px; }
    .pv-flow-ico img { width: 40px; height: 40px; }
    .pv-flow-label { font-size: 12px; line-height: 16px; }

    /* ---- Three detail cards: single column, full width ---- */
    /* .di-section.pv-cards-section { padding: 0 0 40px; } */

    .pv-cards {
        flex-direction: column;
        gap: 20px;
    }

    .pv-card {
        flex: 1 1 100%;
        /* Figma: 15px side / 20px vertical inner padding */
        padding: 20px 15px;
        border-radius: 16px;
    }

    /* Icon tile 58x58, inner glyph 29x29 */
    .pv-card-ico {
        width: 58px;
        height: 58px;
        border-radius: 7px;
    }
    .pv-card-ico img {
        width: 29px;
        height: 29px;
    }

    /* Watermark number: 58px Poppins Bold, 50px line box */
    .pv-card-num {
        font-size: 58px;
        line-height: 50px;
    }

    /* Title: 16px SemiBold */
    .pv-card-title {
        margin-top: 20px;
        font-size: 16px;
        line-height: 20px;
    }

    /* Description: 12px Medium */
    .pv-card-desc {
        margin-top: 16px;
        font-size: 12px;
        line-height: 22px;
        min-height: 0;
    }

    /* Check list: 12px Regular, 26px rows, 16px pink ticks */
    .pv-check-list {
        margin-top: 18px;
    }
    .pv-check-list li {
        padding-left: 29px;
        font-size: 12px;
        line-height: 26px;
    }
    .pv-check-list li::before {
        top: 5px;
        width: 16px;
        height: 16px;
    }

    /* Card 01 — rate table */
    .pv-rate-table {
        border-radius: 8px;
    }
    .pv-rate-row {
        font-size: 12px;
    }

    /* Card 02 — map / Card 03 — stats box: fixed 146px height */
    .pv-card-map,
    .pv-stats-box {
        margin-top: 30px;
        height: 146px;
        border-radius: 8px;
    }

    /* Card 03 — stats box: "Up to 70%" + divider + benefits */
    .pv-stats-box {
        gap: 20px;
        padding: 0 18px;
    }
    .pv-stat-70 .pv-stat-small {
        font-size: 12px;
        line-height: 18px;
    }
    .pv-stat-70 .pv-stat-big {
        font-size: 24px;
        line-height: 30px;
    }
    .pv-stat-70 .pv-stat-cap {
        font-size: 12px;
        line-height: 16px;
        margin-top: 6px;
    }
    .pv-stat-divider {
        height: 88px;
    }
    .pv-stat-benefits li {
        font-size: 12px;
        line-height: 22px;
    }

    /* Request a Call Back — full width pill */
    .pv-callback-wrap { margin-top: 30px; }
    .pv-callback-btn {
        width: 100%;
        justify-content: center;
    }

    /* ---- Connected intelligence: stacked full-width buttons ---- */
    .di-section.pv-ecosystem { padding: 30px 0; }
    .pv-eco-links {
        margin-top: 30px;
        flex-direction: column;
        gap: 15px;
    }
    .pv-eco-btn {
        width: 100%;
        justify-content: center;
        padding: 0 20px;
        height: 48px;
    }

    /* ---- Data & Insights Engine: single column ---- */
    /* Twin stat tables stack */
    .die-stat-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    /* Liveability scores single column; overall stays full width */
    .die-scores {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .die-score.is-overall {
        grid-column: auto;
    }
    .die-chart {
        height: 140px;
    }
    .die-map {
        min-height: 200px;
    }
}
