.plans-page,
.checkout-page {
    min-height: 720px;
    padding: 58px 0 84px;
    background: #f4f6f9;
}

.plans-heading,
.checkout-heading {
    max-width: 800px;
    margin: 0 auto 34px;
    text-align: center;
}

.plans-heading h1,
.checkout-heading h1 {
    margin: 13px 0;
    color: #071936;
    font-size: clamp(42px, 6vw, 66px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.plans-heading p,
.checkout-heading p {
    margin: 0;
    color: #657086;
    font-size: 17px;
    line-height: 1.7;
}

.payment-environment-alert {
    display: flex;
    max-width: 920px;
    align-items: flex-start;
    gap: 14px;
    margin: 0 auto 30px;
    padding: 17px 20px;
    border: 1px solid #bed5ff;
    border-radius: 15px;
    background: #eaf2ff;
}

.payment-environment-alert > span {
    font-size: 25px;
}

.payment-environment-alert strong {
    display: block;
    color: #071936;
}

.payment-environment-alert p {
    margin: 5px 0 0;
    color: #485469;
    line-height: 1.55;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 390px));
    justify-content: center;
    gap: 24px;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid #e1e5ec;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(7, 25, 54, 0.08);
}

.plan-card.featured {
    border: 2px solid #2167d5;
}

.plan-highlight {
    position: absolute;
    top: -14px;
    right: 24px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #2167d5;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
}

.plan-name {
    color: #071936;
    font-size: 19px;
    font-weight: 900;
}

.plan-price {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-top: 24px;
    color: #071936;
}

.plan-price small {
    margin-top: 9px;
    font-size: 17px;
    font-weight: 800;
}

.plan-price strong {
    font-size: 50px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.plan-period {
    margin-top: 7px;
    color: #657086;
}

.plan-card ul {
    display: grid;
    gap: 12px;
    margin: 28px 0;
    padding: 0;
    list-style: none;
}

.plan-card li {
    position: relative;
    padding-left: 25px;
    color: #485469;
    line-height: 1.5;
}

.plan-card li::before {
    position: absolute;
    left: 0;
    color: #118753;
    content: "✓";
    font-weight: 900;
}

.plan-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border-radius: 14px;
    background: #2167d5;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.plans-benefits {
    margin-top: 70px;
}

.plans-benefits > header {
    text-align: center;
}

.plans-benefits h2 {
    margin: 12px 0 28px;
    color: #071936;
    font-size: 36px;
}

.plans-benefits > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.plans-benefits article {
    padding: 24px;
    border: 1px solid #e1e5ec;
    border-radius: 17px;
    background: #ffffff;
}

.plans-benefits article > span {
    color: #2167d5;
    font-size: 28px;
    font-weight: 900;
}

.plans-benefits h3 {
    margin: 14px 0 7px;
    color: #071936;
}

.plans-benefits p {
    margin: 0;
    color: #657086;
    line-height: 1.65;
}

.checkout-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
    color: #8791a4;
    font-size: 13px;
}

.checkout-breadcrumb a {
    color: #2167d5;
    font-weight: 700;
    text-decoration: none;
}

.digital-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: start;
    gap: 28px;
}

.digital-checkout-content {
    display: grid;
    gap: 22px;
}

.checkout-section,
.digital-checkout-summary {
    border: 1px solid #e1e5ec;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(7, 25, 54, 0.06);
}

.checkout-section {
    padding: 26px;
}

.checkout-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
}

.checkout-section-heading > span {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 50%;
    background: #2167d5;
    color: #ffffff;
    font-weight: 900;
}

.checkout-section-heading h2 {
    margin: 2px 0 4px;
    color: #071936;
}

.checkout-section-heading p {
    margin: 0;
    color: #657086;
}

.checkout-books {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.checkout-book {
    cursor: pointer;
}

.checkout-book > input,
.payment-option > input {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

.checkout-book-card {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
    height: 100%;
    padding: 12px;
    border: 2px solid #e1e5ec;
    border-radius: 15px;
    background: #fafbfd;
    transition: 0.2s ease;
}

.checkout-book.selected .checkout-book-card {
    border-color: #2167d5;
    background: #eaf2ff;
}

.checkout-book-cover {
    display: grid;
    min-height: 145px;
    overflow: hidden;
    place-items: center;
    border-radius: 10px;
    background: #123565;
    color: #ffffff;
}

.checkout-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-book-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.checkout-book-info strong {
    color: #071936;
    line-height: 1.3;
}

.checkout-book-info small {
    margin-top: 6px;
    color: #657086;
}

.checkout-book-info em {
    margin-top: 18px;
    color: #2167d5;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.checkout-selection-feedback {
    margin: 14px 0 0;
    color: #c93636;
    font-size: 13px;
    font-weight: 700;
}

.checkout-selection-feedback.valid {
    color: #118753;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.payment-option {
    cursor: pointer;
}

.payment-option-card {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 2px solid #e1e5ec;
    border-radius: 15px;
    background: #fafbfd;
}

.payment-option input:checked + .payment-option-card {
    border-color: #2167d5;
    background: #eaf2ff;
}

.payment-option-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border-radius: 14px;
    background: #2167d5;
    color: #ffffff;
    font-weight: 900;
}

.payment-option strong,
.payment-option small,
.payment-option em {
    display: block;
}

.payment-option strong {
    color: #071936;
}

.payment-option small {
    margin-top: 4px;
    color: #657086;
}

.payment-option em {
    margin-top: 7px;
    color: #118753;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.digital-checkout-summary {
    position: sticky;
    top: 24px;
    padding: 27px;
}

.summary-eyebrow {
    color: #2167d5;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.digital-checkout-summary h2 {
    margin: 10px 0 22px;
    color: #071936;
}

.digital-checkout-summary dl {
    display: grid;
    gap: 13px;
    margin: 0;
}

.digital-checkout-summary dl > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #657086;
}

.digital-checkout-summary dd {
    margin: 0;
    color: #293246;
    font-weight: 800;
}

.checkout-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 23px;
    padding-top: 20px;
    border-top: 1px solid #e1e5ec;
}

.checkout-total span {
    color: #657086;
}

.checkout-total strong {
    color: #071936;
    font-size: 29px;
}

.checkout-confirm-button {
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
    border: 0;
    border-radius: 14px;
    background: #2167d5;
    color: #ffffff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.checkout-confirm-button:disabled {
    background: #aeb6c5;
    cursor: not-allowed;
}

.checkout-back-link {
    display: block;
    margin-top: 14px;
    color: #2167d5;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.checkout-security {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e1e5ec;
}

.checkout-security p {
    margin: 0;
}

.checkout-security strong,
.checkout-security small {
    display: block;
}

.checkout-security strong {
    color: #071936;
}

.checkout-security small {
    margin-top: 4px;
    color: #8791a4;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .digital-checkout-layout {
        grid-template-columns: 1fr;
    }

    .digital-checkout-summary {
        position: static;
    }

    .plans-benefits > div {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .plans-grid,
    .checkout-books,
    .payment-options {
        grid-template-columns: 1fr;
    }

    .checkout-book-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }
}
