.ltb-plans {
    padding: 120px 0 64px;
    background: var(--ltb-light-beige);
}

/* Finance: 150 from the pay cards to the head, a 24px table title */
@media (min-width: 1024px) {
    .ltb-page--finance .ltb-plans {
        padding-top: 150px;
    }

    .ltb-page--finance .ltb-tbl__title {
        font-size: 24px;
    }

    .ltb-page--finance .ltb-tbl__plans {
        top: 1px;
    }

    .ltb-page--finance .ltb-tbl__trial {
        font-style: normal;
    }
}

.ltb-plans__title {
    color: var(--ltb-anthracite);
}

.ltb-plans__sub,
.ltb-plans__sub strong {
    color: var(--ltb-anthracite);
}

.ltb-plans__sub {
    font-weight: 500;
}

/* the plan name is set in Black, the other highlights in ExtraBold */
.ltb-plans__sub strong:nth-of-type(2) {
    font-weight: 900;
}

.ltb-tbl {
    --ltb-tbl-label: clamp(300px, 33.54%, 440px);
    margin-top: 88px;
}

.ltb-tbl__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 66px;
    padding: 20px 24px 12px 0;
    box-shadow: inset 0 -1.5px 0 var(--ltb-ash);
    box-sizing: border-box;
}

.ltb-tbl__icon {
    display: block;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
}

.ltb-tbl__title {
    color: var(--ltb-anthracite);
    font-size: 26px;
    font-style: italic;
    font-weight: 900;
    line-height: 32px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ltb-tbl__plans {
    position: absolute;
    top: -6px;
    right: 0;
    left: calc(var(--ltb-tbl-label) + 28px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ltb-tbl__plan {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px 0 12px;
}

.ltb-tbl__lockup {
    display: inline-flex;
    align-items: center;
    gap: 4.6px;
}

.ltb-tbl__mark-svg {
    display: block;
    flex: 0 0 27.25px;
    width: 27.25px;
    height: 27.25px;
}

/* the shared pricing marks, recoloured to this table's light-surface variant */
.ltb-tbl__mark-svg [fill="#B3AA9D" i] {
    fill: #D9D2C4;
}

.ltb-tbl__mark-svg [fill="#20BB3B" i] {
    fill: var(--ltb-green);
}

.ltb-tbl__premium-mark [fill="#20BB3B" i] {
    fill: var(--ltb-green-muted);
}

.ltb-tbl__plan-name {
    color: var(--ltb-anthracite);
    font-size: 30px;
    font-weight: 900;
    line-height: 26px;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

.ltb-tbl__trial {
    position: absolute;
    top: -6px;
    left: 50%;
    padding: 5px 19px 4px;
    border-radius: 38px;
    background: var(--ltb-carbon);
    color: #fff;
    font-size: 11px;
    font-style: italic;
    font-weight: 900;
    line-height: 10px;
    letter-spacing: .77px;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateX(-50%);
}

.ltb-tbl__trial .green {
    color: var(--ltb-green);
}

.ltb-tbl__rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ltb-tbl__row {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 64px;
    padding: 2px 0;
    background: #fff;
    box-sizing: border-box;
}

.ltb-tbl__label {
    display: flex;
    flex: 0 0 var(--ltb-tbl-label);
    align-items: center;
    gap: 16px;
    width: var(--ltb-tbl-label);
    padding: 0 12px 0 20px;
    box-sizing: border-box;
}

/* (i): the row's description in a bubble (desktop; phones show it under the label) */
button.ltb-tbl__tip-btn {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: help;
    appearance: none;
    -webkit-appearance: none;
}

button.ltb-tbl__tip-btn:focus-visible {
    outline: 2px solid var(--ltb-green);
    outline-offset: 2px;
}

.ltb-tbl__info {
    display: block;
    width: 16px;
    height: 16px;
}

/* the bubble: one element on <body>, outside the page wrapper (own font and colours) */
.ltb-tip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000000;
    box-sizing: border-box;
    width: max-content;
    max-width: min(300px, calc(100vw - 16px));
    padding: 12px 16px 13px;
    border-radius: 12px;
    background: #222;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    font-family: Nunito, sans-serif;
    font-feature-settings: 'liga' off, 'clig' off;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .15s ease-in-out, transform .15s ease-in-out, visibility 0s .15s;
}

.ltb-tip.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .15s ease-in-out, transform .15s ease-in-out, visibility 0s;
}

.ltb-tip::after {
    content: '';
    position: absolute;
    left: var(--ltb-tip-x, 24px);
    width: 10px;
    height: 10px;
    margin-left: -5px;
    background: #222;
    transform: rotate(45deg);
}

.ltb-tip--above::after {
    bottom: -4px;
}

.ltb-tip--below::after {
    top: -4px;
}

.ltb-tip .ltb-tip__title {
    display: block;
    margin: 0 0 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
}

.ltb-tip__text {
    display: block;
    color: #ECEBE7;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
}

.ltb-tip__text strong {
    color: #fff;
    font-weight: 800;
}

.ltb-tbl__bullet,
.ltb-tbl__desc,
.ltb-tbl__tag,
.ltb-tbl__same,
.ltb-tbl__premium-text--mobile {
    display: none;
}

.ltb-tbl__label-text {
    color: var(--ltb-ash);
    font-size: 16px;
    font-weight: 800;
    line-height: 20px;
}

.ltb-tbl__cells {
    display: grid;
    flex: 1 1 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
}

.ltb-tbl__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 12px;
    text-align: center;
}

.ltb-tbl__value {
    color: var(--ltb-anthracite);
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}

.ltb-tbl__value strong {
    font-weight: inherit;
}

.ltb-tbl__value--none {
    color: #B3AA9D;
}

/* the ticks carry the meaning on desktop; the words stay for screen readers */
.ltb-tbl__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.ltb-tbl__mark {
    display: block;
    width: 24px;
    height: 24px;
    background: url('../images/cell-check.svg') center / 24px 24px no-repeat;
}

.ltb-tbl__mark--cross {
    background-image: url('../images/cell-cross.svg');
}

.ltb-tbl__premium {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.ltb-tbl__premium-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 80px;
    padding: 0 24px;
    border-top: 2px solid #000;
    background: #fff;
    box-sizing: border-box;
    font-size: 20px;
    font-style: italic;
    font-weight: 900;
    line-height: 22px;
    letter-spacing: .8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ltb-tbl__premium-lead {
    color: var(--ltb-green-muted);
}

.ltb-tbl__premium-text {
    color: var(--ltb-ash);
}

.ltb-tbl__premium-lockup {
    display: inline-flex;
    align-items: center;
    gap: 4.16px;
}

.ltb-tbl__premium-mark {
    display: block;
    flex: 0 0 20.82px;
    width: 20.82px;
    height: 20.82px;
}

/* the small lockup scaled with its 20.8px mark */
.ltb-tbl__premium-name {
    color: #000;
    font-size: 22.2px;
    line-height: 19.4px;
    letter-spacing: 1.11px;
    text-transform: none;
}

/* the 8px white gap under each premium row takes no layout space (as in Figma),
   so the row content stays centred in the full 64px */
.ltb-tbl__row--premium {
    background: #F9F7F6;
    box-shadow: inset 0 -8px 0 #fff;
}

/* Travel: plan names, the plans row and an upright trial pill as in its design */
.ltb-page--travel .ltb-tbl__plans {
    top: 4px;
}

.ltb-page--travel .ltb-tbl__trial {
    font-style: normal;
}

@media (min-width: 1200px) {
    .ltb-page--travel .ltb-tbl__plan-name {
        font-size: 26px;
        letter-spacing: 1.04px;
    }
}

/* Travel desktop: the table title upright at 22px, the plan names (no marks beside them) level with it */
@media (min-width: 1024px) {
    .ltb-page--travel .ltb-tbl__plan-name {
        position: relative;
        top: 4px;
    }

    .ltb-page--travel .ltb-tbl__title {
        font-size: 22px;
        font-style: normal;
        font-weight: 800;
        letter-spacing: .5px;
    }
}

/* Travel: each premium row's 8px white strip lies over the top of the next row, so the first
   band is the full 64px and the last row's strip hangs below it without taking space */
@media (min-width: 1024px) {
    .ltb-page--travel .ltb-tbl__row--premium {
        box-shadow: inset 0 8px 0 #fff;
    }

    .ltb-page--travel .ltb-tbl__premium-head + .ltb-tbl__row--premium {
        box-shadow: none;
    }

    .ltb-page--travel .ltb-tbl__row--premium:last-child {
        box-shadow: inset 0 8px 0 #fff, 0 8px 0 #fff;
    }

    .ltb-page--travel .ltb-tbl__premium-head + .ltb-tbl__row--premium:last-child {
        box-shadow: 0 8px 0 #fff;
    }
}

.ltb-plans__cta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 72px;
}

@media (max-width: 1199px) {
    .ltb-tbl__mark-svg {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    .ltb-tbl__plan-name {
        font-size: 24px;
        line-height: 22px;
        letter-spacing: .96px;
    }
}

html.ltb-nav-ready .nnavbar {
    transition: margin-top .3s ease-in-out;
}

html.ltb-nav-hidden .nnavbar {
    margin-top: calc(-1 * var(--ltb-nav-h, 0px));
}

/* band above keeps the trial flag readable when the row is pinned */
.ltb-plans .ltb-tbl__head::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 24px;
    background: var(--ltb-light-beige);
}

.ltb-plans .ltb-tbl__head {
    position: sticky;
    top: calc(var(--ltb-nav-offset, 0px) + 24px);
    z-index: 5;
    background: var(--ltb-light-beige);
    transition:
        top .3s ease-in-out,
        box-shadow .3s ease,
        opacity .8s cubic-bezier(.22, .61, .36, 1) var(--ltb-delay, 0ms),
        transform 1s cubic-bezier(.16, 1, .3, 1) var(--ltb-delay, 0ms);
}

.ltb-plans .ltb-tbl__head.is-stuck {
    box-shadow: inset 0 -1.5px 0 var(--ltb-ash), 0 14px 20px -18px rgba(0, 0, 0, .35);
}

/* mobile: one card per benefit, the four plans listed under it */
@media (max-width: 1023px) {
    .ltb-plans {
        padding: 48px 0 40px;
    }

    .ltb-plans .ltb-container {
        padding: 0;
    }

    .ltb-plans__head {
        padding: 0 24px;
    }

    .ltb-plans__sub {
        max-width: 360px;
    }

    .ltb-tbl {
        margin-top: 64px;
    }

    .ltb-tbl__title {
        white-space: normal;
    }

    .ltb-plans .ltb-tbl__head {
        position: static;
        height: auto;
        margin-bottom: 11px;
        padding: 0 16px;
        border: 0;
        background: none;
        box-shadow: none;
    }

    .ltb-plans .ltb-tbl__head::before,
    .ltb-tbl__plans,
    button.ltb-tbl__tip-btn,
    .ltb-tbl__mark,
    .ltb-tbl__value--none,
    .ltb-tbl__premium-text--desktop {
        display: none;
    }

    .ltb-tbl__rows {
        overflow: hidden;
        border-radius: 20px 20px 18px 18px;
    }

    .ltb-tbl__row,
    .ltb-tbl__row--premium {
        display: block;
        height: auto;
        padding: 16px 24px 20px 12px;
        border-bottom: 1px solid var(--ltb-regular-beige);
        box-shadow: none;
    }

    .ltb-tbl__row--premium:last-child {
        padding-bottom: 24px;
        border-bottom: 0;
    }

    .ltb-tbl__label {
        align-items: flex-start;
        gap: 10px;
        width: auto;
        padding: 0;
    }

    .ltb-tbl__bullet {
        display: block;
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        color: var(--ltb-anthracite);
    }

    /* all four plans alike: one line instead of the four (as on the pricing page) */
    .ltb-tbl__row--same .ltb-tbl__bullet {
        color: var(--ltb-green-muted);
    }

    .ltb-tbl__row--same .ltb-tbl__cells {
        display: none;
    }

    .ltb-tbl__same {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 10px;
        margin: 14px 0 2px 30px;
        padding: 6px 0 10px;
        box-shadow: inset 0 -1.3px 0 var(--ltb-regular-beige);
    }

    .ltb-tbl__same-value {
        color: var(--ltb-anthracite);
        font-size: 14px;
        font-weight: 800;
        line-height: 20px;
    }

    .ltb-tbl__same--off .ltb-tbl__same-value {
        color: var(--ltb-rich-beige);
        font-weight: 600;
    }

    .ltb-tbl__same-tag {
        color: var(--ltb-green-muted);
        font-size: 12px;
        font-weight: 900;
        line-height: 20px;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .ltb-tbl__label-text {
        color: var(--ltb-anthracite);
        font-weight: 700;
    }

    .ltb-tbl__desc {
        display: block;
        margin-top: 8px;
        padding-left: 30px;
        color: var(--ltb-rich-beige);
        font-size: 14px;
        font-weight: 600;
        line-height: 18px;
    }

    .ltb-tbl__cells {
        display: flex;
        flex-direction: column;
        gap: 3px;
        margin-top: 14px;
        padding: 0 0 2px 30px;
    }

    .ltb-tbl__cell {
        justify-content: flex-start;
        gap: 10px;
        min-height: 32px;
        padding: 6px 0 9.7px;
        box-shadow: inset 0 -1.3px 0 var(--ltb-regular-beige);
        box-sizing: border-box;
        text-align: left;
    }

    .ltb-tbl__cell[data-plan="zen"] {
        min-height: 0;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--ltb-green);
        box-shadow: none;
    }

    .ltb-tbl__tag {
        display: block;
        flex: 0 0 58px;
        color: var(--ltb-rich-beige);
        font-size: 12px;
        font-weight: 900;
        line-height: 12px;
        letter-spacing: .7px;
        text-transform: uppercase;
    }

    .ltb-tbl__cell[data-plan="zen"] .ltb-tbl__tag {
        color: var(--ltb-green-muted);
    }

    .ltb-tbl__text {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
        color: var(--ltb-rich-beige);
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
    }

    .ltb-tbl__text--on {
        color: var(--ltb-anthracite);
        font-weight: 800;
    }

    .ltb-tbl__value {
        font-size: 14px;
        font-weight: 600;
    }

    .ltb-tbl__value strong {
        font-weight: 800;
    }

    .ltb-tbl__premium {
        gap: 8px;
        padding-top: 0;
    }

    /* one line on a 440 phone as designed; narrower screens wrap it phrase by phrase */
    .ltb-tbl__premium-head {
        flex-wrap: wrap;
        gap: 2px 6px;
        height: auto;
        min-height: 80px;
        padding: 12px 24px;
        border-bottom: 0;
        font-size: 15px;
        letter-spacing: .6px;
        white-space: normal;
    }

    .ltb-tbl__premium-head > span {
        white-space: nowrap;
    }

    .ltb-tbl__premium-lockup {
        gap: 2.866px;
    }

    .ltb-tbl__premium-mark {
        flex-basis: 14.328px;
        width: 14.328px;
        height: 14.328px;
    }

    .ltb-tbl__premium-name {
        font-size: 14.6px;
        line-height: 12.774px;
        letter-spacing: .73px;
    }

    .ltb-tbl__premium-text--mobile {
        display: inline;
    }

    .ltb-plans__cta {
        flex-direction: column;
        align-items: center;
        margin-top: 16px;
    }

    .ltb-plans__cta .ltb-btn {
        width: min(346px, 100% - 48px);
    }
}

@media (max-width: 399px) {
    .ltb-tbl__premium-head {
        font-size: 13px;
    }

    .ltb-plans__cta .ltb-btn {
        padding-left: 12px;
        padding-right: 20px;
    }
}