/* E-book landing and unlock pages */
.book-page {
    padding-top: 70px;
}

.book-hero {
    background: radial-gradient(1200px 500px at 15% 0%, #1e3a5f 0%, transparent 60%),
                linear-gradient(160deg, #0b1624 0%, #0f2338 55%, #13304f 100%);
    color: #e2e8f0;
    padding: 70px 0 80px;
}

.book-hero-inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.book-cover-wrap {
    perspective: 1200px;
}

.book-cover {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transform: rotateY(-8deg);
    transition: transform 0.5s ease;
}

.book-cover-wrap:hover .book-cover {
    transform: rotateY(0deg);
}

.book-kicker {
    color: #f5b43c;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.book-hero h1 {
    color: #fff;
    font-size: 2.8rem;
    line-height: 1.12;
    font-weight: 800;
    margin-bottom: 10px;
}

.book-subtitle {
    font-size: 1.25rem;
    color: #a9bdd6;
    margin-bottom: 8px;
}

.book-byline {
    color: #94a3b8;
    margin-bottom: 22px;
}

.book-byline a {
    color: #cbd5e1;
}

.book-lede {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #cbd5e1;
    max-width: 640px;
    margin-bottom: 28px;
}

.buy-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 22px 24px;
    max-width: 640px;
    scroll-margin-top: 90px;
}

.buy-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 16px;
}

.buy-amount {
    font-size: 2.3rem;
    font-weight: 800;
    color: #fff;
}

.buy-terms {
    color: #94a3b8;
}

.buy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.book-hero .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.book-hero .btn-secondary:hover {
    background: #fff;
    color: var(--darker-color);
    border-color: #fff;
}

.buy-note {
    margin-top: 14px;
    font-size: 0.88rem;
    color: #94a3b8;
}

.buy-unlock {
    margin-top: 14px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.buy-unlock a {
    color: #93c5fd;
    font-weight: 600;
}

.book-section {
    padding: 70px 0;
}

.book-section-alt {
    background: var(--light-color);
}

.book-h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--darker-color);
    margin-bottom: 14px;
}

.book-intro {
    color: var(--gray-color);
    font-size: 1.08rem;
    margin-bottom: 30px;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.format-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.format-card i {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.format-card h3 {
    font-size: 1.2rem;
    color: var(--darker-color);
    margin-bottom: 8px;
}

.format-card p {
    color: var(--gray-color);
    line-height: 1.65;
}

.book-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.book-two-col p {
    line-height: 1.75;
    margin-bottom: 12px;
}

.book-ticks {
    list-style: none;
    margin-bottom: 14px;
}

.book-ticks li {
    padding: 6px 0 6px 28px;
    position: relative;
}

.book-ticks li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

.book-small {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.toc-list {
    list-style: none;
    columns: 2;
    column-gap: 40px;
    margin: 10px 0 30px;
}

.toc-list li {
    break-inside: avoid;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.toc-list li a {
    display: flex;
    align-items: center;
    width: 100%;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.toc-list li a:hover {
    text-decoration: underline;
}

.toc-num {
    display: inline-block;
    min-width: 34px;
    color: var(--gray-color);
    font-weight: 600;
}

.toc-tag {
    margin-left: auto;
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.toc-appendix {
    color: var(--gray-color) !important;
}

.book-center {
    text-align: center;
}

.book-narrow {
    max-width: 820px;
}

.book-narrow p {
    line-height: 1.75;
}

.book-narrow a {
    color: var(--primary-color);
}

.faq {
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--darker-color);
    font-size: 1.05rem;
}

.faq p {
    margin-top: 10px;
    color: var(--dark-color);
}

.book-final {
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: #fff;
    padding: 56px 0;
}

.book-final-inner {
    display: flex;
    align-items: center;
    gap: 36px;
}

.book-final img {
    border-radius: 3px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.book-final h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.book-final p {
    color: #dbeafe;
    margin-bottom: 18px;
}

.book-final .btn-primary {
    background: #fff;
    color: var(--primary-color);
}

.btn-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Unlock page */
.unlock-wrap {
    padding: 130px 20px 80px;
    background: var(--light-color);
    min-height: 75vh;
}

.unlock-card {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.unlock-head {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.unlock-head img {
    width: 64px;
    height: auto;
    border-radius: 3px;
    box-shadow: var(--shadow-md);
}

.unlock-card h1 {
    font-size: 1.6rem;
    color: var(--darker-color);
    line-height: 1.25;
}

.unlock-card p {
    line-height: 1.7;
    margin-bottom: 14px;
}

.unlock-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.unlock-card input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 16px;
}

.unlock-card input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.unlock-card .btn {
    width: 100%;
}

.unlock-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.unlock-help {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: var(--gray-color);
}

.unlock-help a {
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .book-hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .book-cover-wrap {
        max-width: 220px;
        margin: 0 auto;
    }

    .book-cover {
        transform: none;
    }

    .book-hero h1 {
        font-size: 2.1rem;
    }

    .format-grid,
    .book-two-col {
        grid-template-columns: 1fr;
    }

    .toc-list {
        columns: 1;
    }
}

@media (max-width: 600px) {
    .book-hero {
        padding: 32px 0 56px;
    }

    .book-cover-wrap {
        max-width: 150px;
    }

    .buy-actions .btn {
        width: 100%;
    }

    .book-final-inner {
        flex-direction: column;
        text-align: center;
    }

    .unlock-card {
        padding: 28px 22px;
    }
}

.buy-amazon {
    margin-top: 14px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.buy-amazon i {
    color: #f5b43c;
    margin-right: 4px;
}

.buy-amazon a {
    color: #93c5fd;
    font-weight: 600;
}

.final-amazon {
    margin: 14px 0 0 !important;
    font-size: 0.95rem;
}

.final-amazon a {
    color: #fff;
    font-weight: 600;
}
