/* =====================================================
   Plans Section
   ===================================================== */

.plans-section {
    background: none;
    font-family: "Aktiv Grotesk", sans-serif;
    overflow: visible;
    padding: 126px 100px 58px 100px;
    position: relative;
}

.plans-section::before {
    content: '';
    position: absolute;
    inset: 0;
    top: 60px;
    left: 60px;
    right: 60px;
    background: linear-gradient(180deg, #1C355E 0%, #2D5699 63.69%);
    border-top-left-radius: 48px;
    border-top-right-radius: 48px;
    z-index: 0;
}

.plans-section__container {
    max-width: 1360px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    overflow: hidden;
    gap: 196px;
    align-items: flex-start;
}

/* Left column */
.plans-section__left {
    flex: 0 0 365px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.plans-section__title {
    font-size: 36px;
    font-weight: 600;
    line-height: 112%;
    color: var(--plans-title-color, #80CC00) !important;
    -webkit-text-fill-color: var(--plans-title-color, #80CC00) !important;
    margin-bottom: 16px;
}

.plans-section__description {
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: #ffffff;
}

.plans-section__description p {
    margin-bottom: 0;
    color: #ffffff;
}

/* Cards column */
.plans-section__cards {
    display: flex;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

/* Individual card */
.plans-card {
    background-color: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--Primary-palette-Outlines, #D0D5DD);
    display: flex;
    flex-direction: column;
    flex: 0 0 388px;
    max-width: 388px;
    min-height: 690px;
    min-width: 0;
    overflow: hidden;
}

.plans-card__body {
    flex: 1;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card label (e.g. "The Essentials", "Extras Premium") */
.plans-card__label {
    font-size: 18px;
    font-weight: 600;
    color: #1C355E;
    margin-bottom: 0;
}

/* Card 1 price row (£0 + "Free forever") */
.plans-card__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.plans-card__price-amount {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    color: #1C355E;
}

.plans-card__price-label {
    font-size: 18px;
    font-weight: 400;
    color: #1C355E;
}

/* Card 2 large price title (One-Off fee) */
.plans-card__price-large {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: #1C355E;
    margin-bottom: 0;
}

/* Description */
.plans-card__desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: #333336;
}

.plans-card__desc p {
    margin-bottom: 0;
    color: #333336;
}

/* Buttons */
.plans-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    height: 50px;
    min-height: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    align-self: center;
    width: 168px;
    min-width: 168px;
    border: 1px solid #80CC00;
}

.plans-card__btn--filled {
    background-color: #80CC00;
    color: #000000;
}

.plans-card__btn--filled:hover {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #80CC00;
}

.plans-card__btn--outlined {
    background-color: #80CC00;
    color: #000000;
}

.plans-card__btn--outlined:hover {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #80CC00;
}

/* Feature list */
.plans-card__features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plans-card__features ul li {
    font-size: 15px;
    font-weight: 400;
    line-height: 140%;
    color: #333336;
    padding-left: 38px;
    position: relative;
}

.plans-card__features ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background-image: url("/assets/icons/icon-google-tick.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

.plans-block-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plans-block-ul li {
    font-size: 15px;
    font-weight: 400;
    line-height: 140%;
    color: #333336;
    padding-left: 38px;
    position: relative;
}

.plans-block-ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background-image: url("/assets/icons/icon-google-tick.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Card footer */
.plans-card__footer {
    background-color: #1C355E;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    line-height: 140%;
    padding: 20px 32px;
    text-align: center;
    margin: 0 16px 16px 16px;
    border-radius: 12px;
}

/* Mobile toggle (hidden on desktop) */
.plans-toggle {
    display: none;
    width: 100%;
    background-color:white;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.plans-toggle__btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background-color: transparent;
    color: #000000;
    font-size: 15px;
    font-weight: 500;
    font-family: "Aktiv Grotesk", sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin: 0;
}

.plans-toggle__btn.active {
    color: #ffffff;
    background-color: #1C355E;
}

/* =====================================================
   Responsive
   ===================================================== */

/* ≤1199px — small laptop: shrink left col + gap to give cards room, add right breathing space */
@media (max-width: 1199px) {
    .plans-section__container {
        gap: 48px;
        margin: 0 auto;
        padding-right: 60px;
    }

    .plans-section__left {
        flex: 0 0 200px;
    }

    .plans-card {
        flex: 1;
        max-width: none;
        min-height: auto;
    }
}
@media (max-width: 991px) {
    .plans-section {
        padding-top: 80px;
        padding-left: 60px;
        padding-right: 60px;
    }

    .plans-section::before {
        top: 40px;
        left: 40px;
        right: 40px;
    }

    .plans-section__container {
        gap: 40px;
    }

    .plans-section__left {
        flex: 0 0 200px;
    }

    .plans-card {
        flex: 1;
        height: auto;
    }

    .plans-card__price-amount {
        font-size: 52px;
    }

    .plans-card__price-large {
        font-size: 38px;
    }
}

@media (max-width: 767px) {
    .plans-section {
        background: linear-gradient(180deg, #1C355E 0%, #2D5699 63.69%);
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin: 0;
        padding: 56px 16px 32px;
    }

    .plans-section::before {
        content: none;
    }

    .plans-section__container {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 390px;
        margin: 0;
        padding-right: 0;
        overflow: visible;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .plans-section__left {
        flex: none;
        width: 100%;
        max-width: 100%;
        padding-top: 0;
        padding-bottom: 16px;
        margin: 0 auto;
        align-items: center;
        text-align: center;
    }

    .plans-toggle {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        margin: 0 auto 24px;
        margin-bottom: 24px;
    }

    .plans-toggle__btn {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }

    .plans-section__title {
        font-size: 28px;
        margin-bottom: 12px;
        text-align: center;
    }

    .plans-section__description {
        text-align: center;
    }

    .plans-section__cards {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0 0 40px;
        align-items: center;
        justify-content: center;
    }

    /* On mobile: only show the card matching the active toggle */
    .plans-card {
        display: none;
        flex: 1 1 auto;
        height: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
    }

    .plans-card--free {
        display: flex;
    }

    .plans-card.is-active {
        display: flex;
    }

    .plans-card--free.is-hidden {
        display: none;
    }

    .plans-card__body {
        padding: 24px 20px 20px;
        gap: 18px;
    }

    .plans-card__footer {
        padding: 16px 20px;
        margin: 0 12px 12px 12px;
    }

    .plans-card__price-amount {
        font-size: 48px;
    }

    .plans-card__price-large {
        font-size: clamp(28px, 8vw, 36px);
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .plans-card__label,
    .plans-card__price,
    .plans-card__desc,
    .plans-card__features,
    .plans-card__features li,
    .plans-block-ul li {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .plans-card__desc {
        font-size: 15px;
    }

    .plans-card__features ul,
    .plans-block-ul {
        gap: 8px;
    }

    .plans-card__features ul li,
    .plans-block-ul li {
        font-size: 14px;
        padding-left: 32px;
    }

    .plans-card__features ul li::before,
    .plans-block-ul li::before {
        width: 20px;
        height: 20px;
    }

    .plans-card__btn {
        width: 100%;
        min-width: unset;
        align-self: stretch;
    }
}
