.hb-cards {
    background: var(--hb-dark, #01221a);
    color: var(--hb-white, #f5f5f5);
    padding: 104px 0;
}

.hb-cards__heading {
    font-family: var(--hb-font-heading, Domine, serif);
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.11;
    margin: 0 0 48px;
}

.hb-cards__description {
    font-size: 16px;
    line-height: 20px;
    margin: -24px 0 48px;
    max-width: 430px;
}

.hb-cards__description > * {
    margin-top: 0;
}

.hb-cards__description > *:last-child {
    margin-bottom: 0;
}

.hb-cards--stack .hb-cards__inner {
    max-width: 1104px;
}

.hb-cards--stack {
    overflow-x: clip;
}

.hb-cards--stack .hb-cards__heading {
    line-height: 80px;
}

.hb-cards--stack .hb-cards__card-title {
    min-width: 0;
    font-size: 44px;
    line-height: 54px;
}

.hb-cards--stack .hb-cards__subtitle {
    font-family: var(--hb-font-body, Inter, sans-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    max-width: 714px;
}

.hb-cards--stack .hb-cards__card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.hb-cards--stack .hb-cards__number {
    order: 0;
    overflow-wrap: normal;
    white-space: nowrap;
}

.hb-cards--stack .hb-cards__copy {
    max-width: 375px;
}

@media (min-width: 1024px) {
    .hb-cards--stack .hb-cards__card {
        min-height: var(--hb-stack-equal-height, 482px);
    }

    .hb-cards--stack .hb-cards__content {
        flex: 1 0 auto;
    }

    .hb-cards--stack .hb-cards__image {
        flex-shrink: 0;
        height: var(--hb-stack-image-height, 420px);
    }

    /* Keep the copy at the same baseline when a CTA has not been supplied. */
    .hb-cards--stack .hb-cards__card--without-link .hb-cards__copy::after {
        content: "";
        flex: 0 0 28px;
        height: 28px;
    }

    .hb-cards--stack.is-stack-compact .hb-cards__card {
        gap: 12px;
        min-height: var(--hb-stack-equal-height, 0px);
        padding: 20px;
    }

    .hb-cards--stack.is-stack-compact .hb-cards__card-title {
        font-size: 32px;
        line-height: 38px;
    }

    .hb-cards--stack.is-stack-compact .hb-cards__number {
        font-size: 32px;
        line-height: 40px;
    }

    .hb-cards--stack.is-stack-compact .hb-cards__subtitle {
        font-size: 16px;
        line-height: 20px;
        margin-top: -8px;
    }

    .hb-cards--stack.is-stack-compact .hb-cards__copy {
        flex: 1 1 0;
        gap: 16px;
        max-width: 58%;
    }

    .hb-cards--stack.is-stack-compact .hb-cards__image {
        width: min(32%, 320px);
    }

    .hb-cards--stack .hb-cards__card--reserve-subtitle .hb-cards__card-header {
        margin-bottom: 32px;
    }

    .hb-cards--stack.is-stack-compact .hb-cards__card--reserve-subtitle .hb-cards__card-header {
        margin-bottom: 20px;
    }
}

.hb-cards--grid .hb-cards__heading {
    font-size: 44px;
    line-height: 54px;
    margin-bottom: 24px;
    max-width: 430px;
}

.hb-cards--grid .hb-cards__description {
    margin: 0 0 56px;
}

.hb-cards__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    isolation: isolate;
}

.hb-cards--stack .hb-cards__list {
    min-height: var(--hb-deck-height, 678px);
    padding-bottom: 0;
    position: relative;
}

.hb-cards--stack .hb-cards__pin {
    align-items: center;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

.hb-cards__card {
    color: var(--hb-black, #070707);
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-height: 482px;
    padding: 32px;
    position: relative;
    top: auto;
    width: min(100%, 1104px);
}

.hb-cards--stack.is-enhanced .hb-cards__pin {
    height: var(--hb-card-height, 602px);
    perspective: var(--hb-stack-perspective, none);
    perspective-origin: 50% 50%;
    position: sticky;
    top: var(--hb-stack-top, 96px);
}

.hb-cards--stack.is-enhanced .hb-cards__card {
    left: 50%;
    margin-top: 0;
    opacity: var(--hb-card-opacity, 1);
    pointer-events: var(--hb-card-pointer, auto);
    position: absolute;
    top: 0;
    transform: translate3d(-50%, var(--hb-card-y, 0px), var(--hb-card-z, 0px)) scale(var(--hb-card-scale, 1)) rotate(var(--hb-card-rotate, 0deg));
    transform-origin: 50% 0;
    transition: opacity 120ms linear, transform 120ms linear;
    will-change: transform, opacity;
}

.hb-cards--stack.is-enhanced .hb-cards__card + .hb-cards__card {
    margin-top: 0;
}

.hb-cards--stack.is-stack-flat .hb-cards__pin,
.hb-cards--stack.is-enhanced.is-stack-flat .hb-cards__pin {
    display: flex;
    flex-direction: column;
    height: auto;
    position: relative;
    top: auto;
}

.hb-cards--stack.is-stack-flat .hb-cards__list,
.hb-cards--stack.is-enhanced.is-stack-flat .hb-cards__list {
    min-height: 0;
}

.hb-cards--stack.is-stack-flat .hb-cards__card,
.hb-cards--stack.is-enhanced.is-stack-flat .hb-cards__card {
    left: auto;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    top: auto;
    transform: none;
    transition: none;
    will-change: auto;
}

.hb-cards--stack.is-stack-flat .hb-cards__card + .hb-cards__card,
.hb-cards--stack.is-enhanced.is-stack-flat .hb-cards__card + .hb-cards__card {
    margin-top: 24px;
}

.hb-cards--stack:not(.is-enhanced) .hb-cards__card + .hb-cards__card {
    margin-top: 24px;
}

.hb-cards--stack .hb-cards__card:focus-visible {
    outline: 2px solid var(--hb-yellow, #ffc641);
    outline-offset: 6px;
}

.hb-cards--stack .hb-cards__card--1 {
    background: var(--hb-green, #03bf93);
    z-index: 3;
}

.hb-cards--stack .hb-cards__card--2 {
    background: var(--hb-white, #f5f5f5);
    width: min(100%, 1040px);
    z-index: 2;
}

.hb-cards--stack .hb-cards__card--3 {
    background: var(--hb-pale, #ffffad);
    width: min(100%, 976px);
    z-index: 1;
}

.hb-cards--grid .hb-cards__list,
.hb-cards--comparison .hb-cards__list,
.hb-cards--checklist .hb-cards__list {
    align-items: stretch;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hb-cards--grid .hb-cards__card,
.hb-cards--comparison .hb-cards__card,
.hb-cards--checklist .hb-cards__card {
    background: rgba(245, 245, 245, 0.07);
    color: var(--hb-white, #f5f5f5);
    gap: 24px;
    margin-top: 0;
    min-height: 0;
    padding: 32px;
    position: relative;
    top: auto;
    width: auto;
    z-index: auto;
}

.hb-cards--grid .hb-cards__card {
    background: rgba(245, 245, 245, 0.05);
    min-height: 320px;
}

.hb-cards--comparison .hb-cards__list--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hb-cards--grid .hb-cards__card-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 32px;
}

.hb-cards--grid .hb-cards__number,
.hb-cards--checklist .hb-cards__number {
    display: none;
}

.hb-cards--grid .hb-cards__content,
.hb-cards--comparison .hb-cards__content,
.hb-cards--checklist .hb-cards__content {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hb-cards--grid .hb-cards__content {
    flex: 1 1 auto;
}

.hb-cards--grid .hb-cards__copy,
.hb-cards--comparison .hb-cards__copy,
.hb-cards--checklist .hb-cards__copy {
    max-width: none;
    width: 100%;
}

.hb-cards--grid .hb-cards__copy {
    flex: 1 1 auto;
}

.hb-cards--grid .hb-cards__link,
.hb-cards--comparison .hb-cards__link,
.hb-cards--checklist .hb-cards__link {
    align-self: flex-start;
    width: auto;
}

.hb-cards--grid .hb-cards__link {
    margin-top: auto;
}

.hb-cards--rows .hb-cards__heading {
    font-size: 44px;
    line-height: 54px;
}

.hb-cards--rows .hb-cards__list {
    align-items: stretch;
    display: flex;
    flex-direction: column;
}

.hb-cards--rows .hb-cards__card {
    align-items: center;
    background: transparent;
    color: var(--hb-white, #f5f5f5);
    display: grid;
    gap: 56px;
    grid-template-columns: 432px minmax(0, 768px);
    justify-content: space-between;
    min-height: 0;
    padding: 32px 0;
    position: relative;
    top: auto;
    width: 100%;
}

.hb-cards--rows .hb-cards__card-header {
    display: block;
}

.hb-cards--rows .hb-cards__number,
.hb-cards--rows .hb-cards__subtitle {
    display: none;
}

.hb-cards--rows .hb-cards__card-title {
    font-size: 36px;
    line-height: 40px;
}

.hb-cards--rows .hb-cards__content {
    display: contents;
}

.hb-cards--rows .hb-cards__copy {
    gap: 28px;
    grid-column: 1;
    grid-row: 1;
    max-width: 432px;
}

.hb-cards--rows .hb-cards__body {
    font-weight: 400;
}

.hb-cards--rows .hb-cards__image {
    grid-column: 2;
    grid-row: 1;
    height: 420px;
    width: min(100%, 768px);
}

.hb-cards--checklist .hb-cards__card-title {
    font-size: 24px;
    line-height: 32px;
}

.hb-cards--checklist .hb-cards__body ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hb-cards--checklist .hb-cards__body li {
    align-items: center;
    display: flex;
    font-size: 14px;
    gap: 8px;
    line-height: 16px;
}

.hb-cards--checklist .hb-cards__body li::before {
    align-items: center;
    background: var(--hb-green, #03bf93);
    border-radius: 50%;
    color: var(--hb-dark, #01221a);
    content: "\2713";
    display: inline-flex;
    flex: 0 0 20px;
    font-size: 13px;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.hb-cards__card-header {
    align-items: flex-start;
    display: flex;
    gap: 32px;
    justify-content: space-between;
}

.hb-cards__card-title {
    font-family: var(--hb-font-heading, Domine, serif);
    font-size: clamp(32px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.22;
    margin: 0;
}

.hb-cards__number {
    font-family: var(--hb-font-heading, Domine, serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 40px;
}

.hb-cards__subtitle {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    margin: -20px 0 0;
    max-width: 714px;
}

.hb-cards__content {
    align-items: flex-end;
    display: flex;
    gap: 32px;
    justify-content: space-between;
}

.hb-cards__copy {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 400px;
}

.hb-cards--stack .hb-cards__link {
    align-self: flex-start;
    width: auto;
}

.hb-cards__body {
    font-size: 16px;
    line-height: 20px;
}

.hb-cards__body > * {
    margin-top: 0;
}

.hb-cards__body > *:last-child {
    margin-bottom: 0;
}

.hb-cards__image {
    height: 420px;
    margin: 0;
    overflow: hidden;
    width: min(36vw, 320px);
}

.hb-cards__img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .hb-cards--stack .hb-cards__card,
    .hb-cards--stack.is-enhanced .hb-cards__card {
        left: auto;
        opacity: 1;
        pointer-events: auto;
        position: relative;
        top: auto;
        transform: none;
        transition: none;
        will-change: auto;
    }

    .hb-cards--stack .hb-cards__pin,
    .hb-cards--stack.is-enhanced .hb-cards__pin {
        display: flex;
        flex-direction: column;
        height: auto;
        position: relative;
        top: auto;
    }

    .hb-cards--stack .hb-cards__list {
        min-height: 0;
        padding-bottom: 0;
    }

    .hb-cards--stack .hb-cards__card + .hb-cards__card,
    .hb-cards--stack.is-enhanced .hb-cards__card + .hb-cards__card {
        margin-top: 24px;
    }
}

@media (max-width: 1023px) {
    .hb-cards {
        padding: 72px 0;
    }

    .hb-cards__card,
    .hb-cards--stack .hb-cards__card--2,
    .hb-cards--stack .hb-cards__card--3,
    .hb-cards--stack.is-enhanced .hb-cards__card {
        left: auto;
        opacity: 1;
        pointer-events: auto;
        min-height: 0;
        position: relative;
        top: auto;
        transform: none;
        will-change: auto;
        width: 100%;
    }

    .hb-cards--stack .hb-cards__list {
        align-items: stretch;
        display: flex;
        flex-direction: row;
        gap: 16px;
        min-height: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0;
        scroll-behavior: smooth;
        scroll-padding-left: 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .hb-cards--stack .hb-cards__pin,
    .hb-cards--stack.is-enhanced .hb-cards__pin {
        display: flex;
        flex: 0 0 100%;
        flex-direction: row;
        gap: 16px;
        height: auto;
        position: relative;
        top: auto;
        width: 100%;
    }

    .hb-cards--stack .hb-cards__card,
    .hb-cards--stack .hb-cards__card--2,
    .hb-cards--stack .hb-cards__card--3,
    .hb-cards--stack.is-enhanced .hb-cards__card {
        flex: 0 0 100%;
        scroll-snap-align: start;
    }

    .hb-cards--stack .hb-cards__card + .hb-cards__card,
    .hb-cards--stack.is-enhanced .hb-cards__card + .hb-cards__card {
        margin-top: 0;
    }

    .hb-cards__content,
    .hb-cards--grid .hb-cards__list,
    .hb-cards--comparison .hb-cards__list,
    .hb-cards--checklist .hb-cards__list {
        display: flex;
        flex-direction: column;
    }

    .hb-cards--rows .hb-cards__card {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .hb-cards--rows .hb-cards__copy,
    .hb-cards--rows .hb-cards__image {
        max-width: none;
        width: 100%;
    }

    .hb-cards--rows .hb-cards__image {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .hb-cards__image {
        aspect-ratio: 4 / 3;
        height: auto;
        width: 100%;
    }

    .hb-cards--stack .hb-cards__image {
        aspect-ratio: 320 / 420;
    }
}

@media (max-width: 767px) {
    .hb-cards--stack .hb-cards__heading {
        line-height: 40px;
        margin-bottom: 24px;
    }

    .hb-cards--rows .hb-cards__heading {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 24px;
    }

    .hb-cards--rows .hb-cards__card {
        gap: 48px;
    }

    .hb-cards--rows .hb-cards__copy {
        gap: 16px;
    }

    .hb-cards--rows .hb-cards__card-title {
        font-size: 20px;
        line-height: 23px;
    }

    .hb-cards--rows .hb-cards__image {
        aspect-ratio: 768 / 420;
    }
    .hb-cards {
        padding: 56px 0;
    }

    .hb-cards__heading {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 32px;
    }

    .hb-cards--grid .hb-cards__heading {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 24px;
    }

    .hb-cards__description,
    .hb-cards--grid .hb-cards__description {
        margin: 0 0 40px;
    }

    .hb-cards__card {
        gap: 24px;
        padding: 24px;
    }

    .hb-cards--stack .hb-cards__card {
        gap: 32px;
        padding: 32px;
    }

    .hb-cards--stack .hb-cards__card-title {
        font-size: 32px;
        line-height: 40px;
    }

    .hb-cards--stack .hb-cards__number {
        align-self: flex-end;
        font-size: 36px;
        line-height: 40px;
        order: -1;
    }

    .hb-cards--stack .hb-cards__card-header {
        display: flex;
    }

    .hb-cards--grid .hb-cards__card {
        gap: 28px;
        min-height: 213px;
    }

    .hb-cards--grid .hb-cards__card-title {
        font-size: 20px;
        line-height: normal;
    }

    .hb-cards__card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .hb-cards__number {
        font-size: 24px;
        line-height: 32px;
        order: -1;
    }

    .hb-cards__image {
        order: -1;
    }
}



@media (min-width: 1024px) {
    .hb-block.hb-cards--grid {
        padding: 84px 0;
    }
}

@media (min-width: 1024px) {
    .hb-cards--rows [data-hb-row-parallax="true"] .hb-cards__img,
    .hb-cards--rows [data-hb-row-parallax="true"] .hb-cards__image img {
        --hb-row-parallax-scale: 1.15;
        transform: translate3d(0, var(--hb-row-parallax, 0px), 0) scale(var(--hb-row-parallax-scale));
        transition: transform 120ms linear;
        will-change: transform;
    }
}

@media (prefers-reduced-motion: reduce), (max-width: 1023px) {
    .hb-cards--rows [data-hb-row-parallax="true"] .hb-cards__img,
    .hb-cards--rows [data-hb-row-parallax="true"] .hb-cards__image img {
        transform: none;
        transition: none;
        will-change: auto;
    }
}


@media (min-width: 1024px) {
    .hb-cards--grid.hb-cards--count-4 .hb-cards__inner {
        column-gap: 16px;
        display: grid;
        grid-template-columns: minmax(0, 544px) minmax(0, 544px);
        justify-content: space-between;
        row-gap: 56px;
    }

    .hb-cards--grid.hb-cards--count-4 .hb-cards__heading {
        font-size: 46px;
        grid-column: 1;
        line-height: 54px;
        margin: 0;
        max-width: 544px;
    }

    .hb-cards--grid.hb-cards--count-4 .hb-cards__description {
        align-self: end;
        grid-column: 2;
        margin: 0;
        max-width: 544px;
    }

    .hb-cards--grid.hb-cards--count-4 .hb-cards__list {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hb-cards--grid.hb-cards--count-4 .hb-cards__card-title {
        font-size: 30px;
        line-height: 34px;
    }
}

.hb-cards--comparison .hb-cards__number {
    display: none;
}

.hb-cards--comparison .hb-cards__body ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hb-cards--comparison .hb-cards__body li {
    align-items: center;
    display: flex;
    font-size: 14px;
    gap: 8px;
    line-height: 16px;
}

.hb-cards--comparison .hb-cards__body li::before {
    align-items: center;
    background: var(--hb-green, #03bf93);
    border-radius: 50%;
    color: var(--hb-dark, #01221a);
    content: "\2713";
    display: inline-flex;
    flex: 0 0 20px;
    font-size: 13px;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.hb-cards--comparison .hb-cards__card:nth-child(3) {
    background: var(--hb-green, #03bf93);
    color: var(--hb-black, #070707);
    grid-column: 1 / -1;
    min-height: 276px;
    overflow: hidden;
}

.hb-cards--comparison .hb-cards__card:nth-child(3)::after {
    background: url("../../assets/images/brand-mark.svg") center / contain no-repeat;
    bottom: -44px;
    content: "";
    height: 281px;
    position: absolute;
    right: 40px;
    width: 240px;
}

.hb-cards--comparison .hb-cards__card:nth-child(3) .hb-cards__copy {
    max-width: 544px;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .hb-cards--grid.hb-cards--count-4 .hb-cards__card-title {
        font-size: 32px;
        line-height: 40px;
    }

    .hb-cards--comparison .hb-cards__heading,
    .hb-cards--comparison .hb-cards__description,
    .hb-cards--comparison .hb-cards__card:nth-child(-n + 2) {
        display: none;
    }

    .hb-cards--comparison .hb-cards__list {
        gap: 0;
    }

    .hb-cards--comparison .hb-cards__card:nth-child(3) {
        display: flex;
        min-height: 0;
    }

    .hb-cards--comparison .hb-cards__card:nth-child(3)::after {
        font-size: 138px;
        right: 8px;
    }
}


.hb-cards--comparison,
.hb-cards--comparison .hb-cards__list {
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hb-cards--checklist.hb-cards--count-4 .hb-cards__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hb-cards--checklist.hb-cards--count-4 .hb-cards__card {
        min-height: 348px;
    }

    .hb-cards--grid.hb-cards--count-5 .hb-cards__card {
        min-height: 190px;
    }

    .hb-cards--stack.hb-cards--count-1 .hb-cards__list {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .hb-cards--rows .hb-cards__image {
        order: 0;
    }
}

@media (min-width: 1024px) {
    .hb-block.hb-cards--comparison {
        padding: 56px 0;
    }

    .hb-cards--comparison .hb-cards__heading {
        font-size: 44px;
        line-height: 54px;
        margin-bottom: 32px;
    }

    .hb-cards--comparison .hb-cards__card {
        min-height: 0;
    }

    .hb-cards--comparison .hb-cards__card:nth-child(3) {
        min-height: 216px;
    }

    .hb-cards--stack.hb-cards--count-1 .hb-cards__inner {
        max-width: 1104px;
    }

    .hb-cards--stack.hb-cards--count-1 .hb-cards__card {
        min-height: 482px;
    }
}

@media (min-width: 1024px) {
    .hb-cards--grid.hb-cards--count-4 .hb-cards__list {
        row-gap: 12px;
    }

    .hb-cards--grid.hb-cards--count-4 .hb-cards__card {
        min-height: 186px;
        padding: 24px;
    }

    .hb-cards--comparison .hb-cards__card {
        padding: 24px;
    }

    .hb-cards--comparison .hb-cards__body ul {
        gap: 8px;
    }

    .hb-cards--comparison .hb-cards__card:nth-child(3) {
        min-height: 380px;
    }
}


@media (max-width: 767px) {
    .hb-cards--grid.hb-cards--count-3 .hb-cards__description {
        margin-bottom: 56px;
    }
}
