.history-cost-public-page {
    background: #ffffff;
}

.history-cost-hero {
    position: relative;
    padding: clamp(72px, 9vw, 122px) 0;
    background:
        radial-gradient(circle at 87% 14%, rgba(0, 121, 138, 0.15), transparent 34%),
        linear-gradient(180deg, #f5f9fc 0%, #ffffff 100%);
}

.history-cost-hero::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(transparent, rgba(6, 31, 54, 0.08), transparent);
    content: "";
}

.history-cost-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(450px, 0.9fr);
    gap: clamp(50px, 7vw, 94px);
    align-items: center;
}

.history-cost-hero__lead {
    max-width: 700px;
    margin-bottom: 30px;
    font-size: clamp(19px, 2vw, 23px) !important;
    line-height: 1.55 !important;
}

.history-cost-demo {
    padding: 24px;
    border: 1px solid #cedae5;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 28px 74px rgba(6, 31, 54, 0.15);
}

.history-cost-demo__header,
.history-cost-demo__vehicle {
    display: flex;
    align-items: center;
}

.history-cost-demo__header {
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dfe7ee;
}

.history-cost-demo__header div,
.history-cost-demo__vehicle div {
    display: grid;
    gap: 2px;
}

.history-cost-demo small,
.history-cost-demo__timeline span {
    color: #6c7f91;
    font-size: 11px;
}

.history-cost-demo__header strong {
    color: #102f49;
    font-size: 20px;
}

.history-cost-demo__header > span {
    padding: 7px 10px;
    border-radius: 999px;
    color: #076778;
    background: #e5f5f6;
    font-size: 11px;
    font-weight: 800;
}

.history-cost-demo__vehicle {
    gap: 12px;
    margin-bottom: 14px;
}

.history-cost-demo__vehicle > span {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    place-items: center;
    color: #ffffff;
    background: var(--driver-teal);
    font-size: 21px;
}

.history-cost-demo__vehicle strong {
    color: #133b57;
}

.history-cost-demo__vehicle p {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
}

.history-cost-demo__timeline {
    position: relative;
    display: grid;
    gap: 8px;
}

.history-cost-demo__timeline::before {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 48px;
    width: 2px;
    background: #dce5ed;
    content: "";
}

.history-cost-demo__timeline article {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 34px 27px 1fr auto;
    gap: 9px;
    align-items: center;
    padding: 10px;
    border: 1px solid #dde6ed;
    border-radius: 10px;
    background: #ffffff;
}

.history-cost-demo__timeline time {
    display: grid;
    color: #173b57;
    line-height: 1;
    text-align: center;
}

.history-cost-demo__timeline time strong {
    font-size: 15px;
}

.history-cost-demo__timeline time span {
    margin-top: 3px;
    font-size: 8px;
}

.history-cost-demo__timeline article > i {
    display: grid;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    place-items: center;
    color: #ffffff;
    background: var(--driver-blue);
    font-size: 11px;
}

.history-cost-demo__timeline article > div {
    display: grid;
    min-width: 0;
}

.history-cost-demo__timeline article > div > strong {
    overflow: hidden;
    color: #153a55;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-cost-demo__timeline article > b {
    color: #153a55;
    font-size: 12px;
}

.history-source {
    display: inline-flex;
    width: max-content;
    margin-top: 3px;
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 9px !important;
    font-weight: 900;
    line-height: 1.2;
}

.history-source--driver {
    color: #765500 !important;
    background: #fff2c5;
}

.history-source--garage {
    color: #126b45 !important;
    background: #dff4e9;
}

.history-source--official {
    color: #1859a7 !important;
    background: #e1efff;
}

.history-source--platform {
    color: #615079 !important;
    background: #eee8f7;
}

.history-cost-demo__summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 13px;
}

.history-cost-demo__summary div {
    padding: 11px;
    border-radius: 8px;
    background: #f1f5f8;
}

.history-cost-demo__summary small,
.history-cost-demo__summary strong {
    display: block;
}

.history-cost-demo__summary strong {
    margin-top: 2px;
    color: #0b3a57;
    font-size: 14px;
}

.history-cost-demo__note {
    margin: 9px 0 0;
    font-size: 10px !important;
    line-height: 1.45 !important;
}

.history-cost-proof {
    border-top: 1px solid #dce5ee;
    border-bottom: 1px solid #dce5ee;
}

.history-cost-proof__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.history-cost-proof__grid div {
    min-height: 118px;
    padding: 28px 25px;
    border-right: 1px solid #dce5ee;
}

.history-cost-proof__grid div:last-child {
    border-right: 0;
}

.history-cost-proof__grid strong,
.history-cost-proof__grid span {
    display: block;
}

.history-cost-proof__grid strong {
    margin-bottom: 5px;
    color: #0b314d;
    font-size: 15px;
}

.history-cost-proof__grid span {
    color: #687c90;
    font-size: 13px;
    line-height: 1.5;
}

.history-timeline-layout,
.history-costs-layout,
.history-mile-layout,
.history-powertrain-layout,
.history-privacy-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(44px, 7vw, 90px);
    align-items: center;
}

.history-event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.history-event-grid article {
    min-height: 200px;
    padding: 23px;
    border: 1px solid #dbe4ec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(6, 31, 54, 0.05);
}

.history-event-grid i {
    margin-bottom: 28px;
    color: var(--driver-teal);
    font-size: 23px;
}

.history-event-grid h3 {
    font-size: 17px;
}

.history-event-grid p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.history-source-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.history-source-grid article {
    padding: 25px;
    border: 1px solid #dbe4ec;
    border-radius: 12px;
    background: #ffffff;
}

.history-source-grid h3 {
    margin-top: 24px;
    font-size: 17px;
}

.history-source-grid p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.history-costs-section {
    background: linear-gradient(145deg, #eef6f7, #ffffff 56%);
}

.history-costs-layout {
    grid-template-columns: minmax(410px, 0.9fr) minmax(0, 1.1fr);
}

.history-costs-visual {
    overflow: hidden;
    border: 1px solid #d2dee7;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 22px 58px rgba(6, 31, 54, 0.1);
}

.history-costs-visual header,
.history-costs-visual div,
.history-costs-visual footer {
    padding: 18px 22px;
}

.history-costs-visual header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    color: #ffffff;
    background: linear-gradient(135deg, #07334f, #00798a);
}

.history-costs-visual header small,
.history-costs-visual header strong {
    grid-column: 1;
}

.history-costs-visual header small {
    color: #b8dce2;
    font-weight: 800;
    text-transform: uppercase;
}

.history-costs-visual header strong {
    font-size: 18px;
}

.history-costs-visual header b {
    grid-row: 1 / 3;
    grid-column: 2;
    font-size: 25px;
}

.history-costs-visual div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e9ef;
}

.history-costs-visual div span {
    color: #526d80;
}

.history-costs-visual div i {
    width: 26px;
    color: var(--driver-blue);
}

.history-costs-visual div strong {
    color: #173b57;
}

.history-costs-visual footer {
    color: #718395;
    background: #f5f8fa;
    font-size: 11px;
    line-height: 1.5;
}

.history-boundary-note {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding: 16px;
    border-left: 4px solid var(--driver-yellow);
    background: #fff9e6;
}

.history-boundary-note i {
    margin-top: 4px;
    color: #8a6200;
}

.history-boundary-note p {
    margin: 0;
    color: #5c4a1a;
    font-size: 14px;
    line-height: 1.55;
}

.history-mile-layout h2 {
    color: #ffffff;
}

.history-mile-rules {
    display: grid;
    gap: 12px;
    margin-top: 25px;
    padding: 0;
    list-style: none;
}

.history-mile-rules li {
    display: flex;
    gap: 11px;
    color: #c4d6e2;
    line-height: 1.55;
}

.history-mile-rules i {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    place-items: center;
    color: #06243b;
    background: var(--driver-yellow);
    font-size: 10px;
}

.history-mile-formula {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.07);
    text-align: center;
}

.history-mile-formula > small {
    display: block;
    margin-bottom: 18px;
    color: #72d5df;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.history-mile-formula div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
}

.history-mile-formula div span {
    color: #bfd0dc;
}

.history-mile-formula div strong {
    color: #ffffff;
    font-size: 20px;
}

.history-mile-formula__divide {
    display: block;
    margin: 9px 0;
    color: var(--driver-yellow);
    font-size: 25px;
    font-style: normal;
    font-weight: 900;
}

.history-mile-formula > b {
    display: block;
    margin-top: 16px;
    color: #ffffff;
    font-size: 27px;
}

.history-mile-formula > p {
    margin: 7px 0 0;
    color: #aebfcb;
    font-size: 11px;
    line-height: 1.5;
}

.history-powertrain-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.history-powertrain-grid {
    display: grid;
    gap: 12px;
}

.history-powertrain-grid article {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 2px 14px;
    padding: 19px;
    border: 1px solid #dce5ed;
    border-radius: 11px;
    background: #ffffff;
}

.history-powertrain-grid i {
    display: grid;
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    border-radius: 11px;
    place-items: center;
    color: #ffffff;
    background: var(--driver-teal);
    font-size: 20px;
}

.history-powertrain-grid strong {
    color: #153a55;
}

.history-powertrain-grid span {
    color: #6c7f91;
    font-size: 13px;
}

.history-privacy-layout {
    grid-template-columns: minmax(350px, 0.72fr) minmax(0, 1.28fr);
}

.history-privacy-layout > div:first-child {
    display: grid;
    padding: 44px;
    border-radius: 17px;
    place-items: center;
    background: linear-gradient(145deg, #07324f, #006f7e);
    text-align: center;
}

.history-privacy-layout > div:first-child > span {
    display: grid;
    width: 82px;
    height: 82px;
    margin-bottom: 20px;
    border-radius: 50%;
    place-items: center;
    color: #06243b;
    background: var(--driver-yellow);
    font-size: 31px;
}

.history-privacy-layout > div:first-child strong {
    color: #ffffff;
    font-size: 19px;
}

.history-privacy-layout > div:first-child small {
    margin-top: 4px;
    color: #bfd5df;
}

.history-booking__card {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    padding: clamp(36px, 5vw, 58px);
    border-radius: 20px;
    background: linear-gradient(135deg, #07324f, #00798a);
    box-shadow: 0 22px 58px rgba(6, 31, 54, 0.17);
}

.history-booking__card > div {
    max-width: 760px;
}

.history-booking__card .driver-eyebrow {
    color: #79dce3;
}

.history-booking__card h2 {
    color: #ffffff;
}

.history-booking__card p {
    margin: 0;
    color: #c5dce4;
}

.history-cost-final-cta .driver-final-cta__card {
    background:
        radial-gradient(circle at 92% 18%, rgba(247, 181, 0, 0.22), transparent 28%),
        linear-gradient(135deg, #061f36, #0a3b59);
}

@media (max-width: 1100px) {
    .history-cost-hero__grid,
    .history-timeline-layout,
    .history-costs-layout,
    .history-mile-layout,
    .history-powertrain-layout,
    .history-privacy-layout {
        grid-template-columns: 1fr;
    }

    .history-cost-demo,
    .history-costs-visual,
    .history-mile-formula,
    .history-privacy-layout > div:first-child {
        max-width: 720px;
    }

    .history-cost-proof__grid,
    .history-source-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-cost-proof__grid div:nth-child(2) {
        border-right: 0;
    }

    .history-cost-proof__grid div:nth-child(-n+2) {
        border-bottom: 1px solid #dce5ee;
    }
}

@media (max-width: 760px) {
    .history-event-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-booking__card {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .history-cost-hero {
        padding: 58px 0;
    }

    .history-cost-demo {
        padding: 16px;
        border-radius: 14px;
    }

    .history-cost-demo__timeline article {
        grid-template-columns: 30px 25px 1fr;
    }

    .history-cost-demo__timeline article > b {
        grid-column: 3;
    }

    .history-cost-demo__summary,
    .history-cost-proof__grid,
    .history-event-grid,
    .history-source-grid {
        grid-template-columns: 1fr;
    }

    .history-cost-proof__grid div,
    .history-cost-proof__grid div:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #dce5ee;
    }

    .history-cost-proof__grid div:last-child {
        border-bottom: 0;
    }

    .history-event-grid article {
        min-height: 0;
    }

    .history-costs-visual header b {
        font-size: 20px;
    }

    .history-costs-visual div {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column;
    }

    .history-mile-formula {
        padding: 22px;
    }

    .history-mile-formula div {
        align-items: flex-start;
        gap: 6px;
        flex-direction: column;
    }

    .history-privacy-layout > div:first-child {
        padding: 32px 20px;
    }

    .history-booking__card .driver-button {
        width: 100%;
    }
}
