/* The True cost page (Pages/TrueCost.cshtml, 2026-11-29): the customer's mock-up of what one problem tenancy costs to
   put right, built to catch a prospect's eye. Linked from the page itself, unminified, so it loads only there and an
   edit is live on the next build. The shared pieces (eyebrow, pull quote, the closing panel) are in marketing-pages.css.

   Colours are the site's tokens (--purple #625aff, --dark-blue-color #2f2e41). The bars beside each expense are one
   series in that one purple, which passes the dataviz validator against white (contrast 4.9:1); one scale runs across
   both cards (TrueCostModel.LargestLine). */

/* ---------------------------------------------------------------------
   The hero: the mock-up's photograph of a wrecked room under a dark wash, the headline in white over it
   --------------------------------------------------------------------- */

.true-cost-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 5rem 0;
    color: #fff;
    background-color: #1f1d38;
}

@media (min-width: 992px) {
    .true-cost-hero {
        padding: 8rem 0;
    }
}

.true-cost-hero-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
}

/* even all over on a phone, where the text covers the whole photo; from lg the wash thins to the right so the holes in
   the wall show beside the headline */
.true-cost-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(28, 26, 52, .88) 0%, rgba(28, 26, 52, .7) 100%);
}

@media (min-width: 992px) {
    .true-cost-hero::before {
        background: linear-gradient(100deg, rgba(28, 26, 52, .95) 0%, rgba(36, 32, 84, .86) 45%, rgba(98, 90, 255, .22) 100%);
    }
}

.true-cost-hero h1 {
    color: #fff;
}

    .true-cost-hero h1 .fw-normal {
        color: #c9c5ff;
    }

.true-cost-hero .marketing-eyebrow {
    color: #c9c5ff;
}

.true-cost-hero .marketing-lead {
    color: rgba(255, 255, 255, .9);
    max-width: 38rem;
}

/* ---------------------------------------------------------------------
   The two financial models: a card each, the total large at the top, the lines as a receipt with a bar per line
   --------------------------------------------------------------------- */

/* each card its own height: stretched to match, the shorter model left an empty block under its total */
.cost-card {
    background: #fff;
    border: 1px solid rgba(98, 90, 255, .14);
    border-radius: 1.25rem;
    box-shadow: 0 26px 50px -34px rgba(47, 46, 65, .5);
    overflow: hidden;
}

.cost-card-head {
    padding: 1.5rem 1.5rem 1.25rem;
    background: linear-gradient(180deg, rgba(98, 90, 255, .07), rgba(98, 90, 255, 0));
    border-bottom: 1px solid rgba(98, 90, 255, .1);
}

@media (min-width: 576px) {
    .cost-card-head {
        padding: 1.75rem 2rem 1.5rem;
    }
}

.cost-card-model {
    margin: 0 0 .25rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.cost-card-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--dark-blue-color);
}

.cost-card-total {
    margin: .35rem 0 0;
    font-size: clamp(2.6rem, 2rem + 2.4vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--purple);
    font-variant-numeric: tabular-nums;
}

.cost-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: .975rem;
}

    .cost-table thead th {
        padding: .9rem 2rem .35rem;
        font-size: .72rem;
        font-weight: 600;
        letter-spacing: .09em;
        text-transform: uppercase;
        color: var(--bs-secondary-color);
    }

    .cost-table th,
    .cost-table td {
        padding: .55rem 2rem;
        vertical-align: top;
    }

    .cost-table tbody tr + tr th,
    .cost-table tbody tr + tr td {
        border-top: 1px dashed rgba(47, 46, 65, .1);
    }

    .cost-table tbody th {
        font-weight: 400;
        color: var(--dark-blue-color);
    }

    .cost-table tbody tr:hover {
        background-color: rgba(98, 90, 255, .04);
    }

    /* amounts line up on the right in figures of one width */
    .cost-table .cost-amount {
        text-align: right;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
        font-weight: 600;
        color: var(--dark-blue-color);
    }

    .cost-table tfoot th,
    .cost-table tfoot td {
        padding-top: .9rem;
        padding-bottom: 1.25rem;
        border-top: 2px solid var(--dark-blue-color);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--dark-blue-color);
    }

    .cost-table tfoot .cost-amount {
        color: var(--purple);
        font-size: 1.1rem;
    }

@media (max-width: 575.98px) {
    .cost-table thead th,
    .cost-table th,
    .cost-table td {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

        /* on a phone "Estimated cost" may take two lines, so the column is as wide as the amounts and the names keep the
           room */
        .cost-table thead .cost-amount {
            white-space: normal;
        }
}

/* the bar under each expense's name: a thin track in a light step of the purple, the fill in the purple itself, a
   rounded end where the value ends and a square one on the baseline */
.cost-bar {
    display: block;
    height: 6px;
    margin-top: .4rem;
    border-radius: 0 3px 3px 0;
    background-color: rgba(98, 90, 255, .1);
}

    .cost-bar > span {
        display: block;
        height: 100%;
        min-width: 2px;
        border-radius: 0 3px 3px 0;
        background-color: var(--purple);
    }

.true-cost-note {
    max-width: 52rem;
    margin: 1.5rem auto 0;
    font-size: .875rem;
    line-height: 1.55;
    color: var(--bs-secondary-color);
    text-align: center;
}

/* ---------------------------------------------------------------------
   The hidden expense: the copy beside its one sentence, with a clock over the sentence
   --------------------------------------------------------------------- */

.true-cost-clock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--purple);
    background-color: rgba(98, 90, 255, .1);
}
