/* =========================================================
   SWORN TO SECRECY — COMMERCE LAYER V1
   Step 2: price / included benefits / purchase modal /
   member e-book library shell
   ---------------------------------------------------------
   Load AFTER all existing documentary/tuning CSS files.
   ========================================================= */

.offer-price {
    margin: 18px 0 14px;
    padding: 15px 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "label price"
        "note  price";
    gap: 2px 18px;
    align-items: center;
    border: 1px solid rgba(216,180,106,.28);
    border-radius: 10px;
    background: rgba(216,180,106,.055);
}

.offer-price-label {
    grid-area: label;
    color: #eef0f4;
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.offer-price-note {
    grid-area: note;
    color: #8f98a8;
    font-size: .72rem;
}

.offer-price strong {
    grid-area: price;
    color: var(--gold-pale);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1;
    white-space: nowrap;
}

.access-benefits {
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 7px;
    list-style: none;
    color: #cbd1db;
    font-size: .82rem;
}

.access-benefits li {
    position: relative;
    padding-left: 20px;
}

.access-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: 900;
}

/* ---------- Public offer strip ---------- */

.included-access {
    padding: 10px 0 70px;
}

.included-access-head {
    max-width: 860px;
    margin: 0 auto 26px;
    text-align: center;
}

.included-access-head h2 {
    margin: 0 0 9px;
    color: #fff8e9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    line-height: 1.15;
}

.included-access-head p {
    margin: 0;
    color: #aeb6c4;
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.included-card {
    min-height: 182px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 14px;
    background:
        radial-gradient(circle at 0 0, rgba(216,180,106,.08), transparent 48%),
        linear-gradient(145deg, rgba(16,21,32,.90), rgba(7,9,14,.94));
    box-shadow: 0 15px 38px rgba(0,0,0,.30);
}

.included-card .included-number {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.included-card h3 {
    margin: 0 0 8px;
    color: #fff5dd;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.22rem;
}

.included-card p {
    margin: 0;
    color: #b8c0cd;
    font-size: .88rem;
}

/* ---------- Member e-book library ---------- */

.member-benefits {
    margin-bottom: 26px;
    padding: 24px;
    border: 1px solid rgba(216,180,106,.23);
    border-radius: 16px;
    background:
        radial-gradient(circle at 10% 0%, rgba(216,180,106,.08), transparent 35%),
        rgba(8,11,17,.90);
    transition: filter .45s ease, opacity .45s ease;
}

.is-locked .member-benefits {
    filter: blur(6px);
    opacity: .28;
    pointer-events: none;
    user-select: none;
}

.member-benefits-head {
    margin-bottom: 17px;
}

.member-benefits-head h3 {
    margin: 0 0 5px;
    color: #fff7e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

.member-benefits-head p {
    margin: 0;
    color: #aeb6c4;
    font-size: .88rem;
}

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

.ebook-menu {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
}

.ebook-menu summary {
    position: relative;
    padding: 17px 46px 17px 17px;
    cursor: pointer;
    list-style: none;
    color: #f4ead2;
    font-weight: 800;
}

.ebook-menu summary::-webkit-details-marker {
    display: none;
}

.ebook-menu summary::after {
    content: "+";
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.25rem;
    font-weight: 400;
}

.ebook-menu[open] summary::after {
    content: "−";
}

.ebook-subtitle {
    display: block;
    margin-top: 3px;
    color: #8993a3;
    font-size: .72rem;
    font-weight: 500;
}

.ebook-menu-body {
    padding: 0 17px 17px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.ebook-menu-body p {
    margin: 14px 0 0;
    color: #9fa8b7;
    font-size: .82rem;
}

.ebook-link-placeholder {
    margin-top: 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(216,180,106,.33);
    border-radius: 7px;
    color: #a89060;
    background: rgba(216,180,106,.035);
    font-size: .72rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

/* ---------- Purchase modal ---------- */

.purchase-modal[hidden] {
    display: none;
}

.purchase-modal {
    position: fixed;
    z-index: 6500;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
}

.purchase-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(12px);
}

.purchase-dialog {
    position: relative;
    z-index: 2;
    width: min(620px, 96vw);
    padding: 34px;
    border: 1px solid rgba(216,180,106,.38);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 0%, rgba(216,180,106,.10), transparent 35%),
        linear-gradient(150deg, #171c29, #07090e 72%);
    box-shadow: 0 30px 110px rgba(0,0,0,.84);
}

.purchase-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.04);
    font-size: 1.35rem;
}

.purchase-kicker {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.purchase-dialog h2 {
    margin: 0;
    color: #fff7e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.purchase-price {
    margin: 18px 0 5px;
    color: var(--gold-pale);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.25rem;
    line-height: 1;
}

.purchase-once {
    margin: 0 0 20px;
    color: #939cab;
    font-size: .78rem;
}

.purchase-list {
    margin: 0 0 23px;
    padding: 0;
    display: grid;
    gap: 9px;
    list-style: none;
    color: #cbd1dc;
    font-size: .9rem;
}

.purchase-list li {
    position: relative;
    padding-left: 22px;
}

.purchase-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 900;
}

.checkout-placeholder {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f3d696;
    border-radius: 7px;
    color: #17100a;
    background: linear-gradient(135deg,#f2d58e,#c68b37 55%,#f0c975);
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none;
}

.checkout-note {
    margin: 12px 0 0;
    color: #747e8d;
    font-size: .74rem;
    text-align: center;
}

body.purchase-open {
    overflow: hidden;
}
.purchase-checkout-form {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.purchase-checkout-form label {
    color: #c9cfd9;
    font-size: .8rem;
    font-weight: 700;
}

.purchase-checkout-form input {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid rgba(216,180,106,.28);
    border-radius: 7px;
    color: #f5f0e5;
    background: rgba(255,255,255,.035);
    font: inherit;
}

.purchase-checkout-form input:focus {
    outline: none;
    border-color: rgba(216,180,106,.72);
}
@media (max-width: 760px) {
    .included-grid,
    .ebook-grid {
        grid-template-columns: 1fr;
    }

    .included-access {
        padding-bottom: 48px;
    }

    .purchase-dialog {
        padding: 29px 20px 24px;
    }

    .offer-price strong {
        font-size: 1.7rem;
    }
}
