/* Ebook „Nie pytaj, jak było w szkole" — overrides on top of SPC scope.
   Only contains: a warm tint shift + the ebook cover placeholder. */

.spc-page.ebook-page {
    /* Lean slightly warmer than SPC's pure green palette — this product is
       about emotional connection, not productivity. The green accent stays,
       but eyebrows / accents borrow more of the warm amber tone. */
}

/* Mechanism grid: text on the left, ebook cover on the right (mobile: stack) */
.ebook-page .ebook-mechanism-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-gap: 56px;
    gap: 56px;
    align-items: center;
    margin-top: 64px;
}

@media (max-width: 880px) {
    .ebook-page .ebook-mechanism-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Ebook chapter thumbs — replace SPC's "play button" with a book icon look */
.ebook-page .ebook-chapter-thumb {
    background: linear-gradient(140deg, rgba(245, 158, 12, 0.10), rgba(42, 209, 103, 0.10));
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 3 / 4;
    position: relative;
}

.ebook-page .ebook-chapter-thumb::after {
    content: "";
    position: absolute;
    left: 8%;
    top: 12%;
    right: 12%;
    bottom: 18%;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

/* ── Ebook cover placeholder ────────────────────────────────────────────── */

.ebook-page .ebook-cover-wrap {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 14px 14px 18px;
}

.ebook-page .ebook-cover-shadow {
    position: absolute;
    inset: 22px 18px 6px 18px;
    background: radial-gradient(60% 80% at 50% 100%, rgba(0, 0, 0, 0.55), transparent 70%);
    filter: blur(14px);
    z-index: 0;
}

.ebook-page .ebook-cover {
    position: relative;
    z-index: 1;
    aspect-ratio: 3 / 4.2;
    background:
        radial-gradient(120% 80% at 20% 0%, rgba(245, 158, 12, 0.18), transparent 55%),
        radial-gradient(120% 100% at 100% 100%, rgba(42, 209, 103, 0.14), transparent 60%),
        linear-gradient(160deg, #19241d 0%, #0f1812 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px 12px 12px 6px;
    box-shadow:
        0 30px 60px -30px rgba(0, 0, 0, 0.7),
        0 8px 24px -8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 38px 28px 30px 38px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ebook-page .ebook-cover-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 14px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.18) 60%,
        rgba(255, 255, 255, 0.06) 100%
    );
    border-right: 1px solid rgba(0, 0, 0, 0.4);
}

.ebook-page .ebook-cover-eyebrow {
    font-family: var(--spc-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(245, 158, 12, 0.85);
    margin-bottom: 22px;
}

.ebook-page .ebook-cover-title {
    font-family: var(--spc-display);
    color: var(--spc-t-1);
    font-weight: 400;
    font-size: clamp(26px, 3vw, 32px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}

.ebook-page .ebook-cover-title em {
    font-style: italic;
    color: var(--spc-green-400);
}

.ebook-page .ebook-cover-sub {
    font-family: var(--spc-sans);
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    flex: 1 1;
}

.ebook-page .ebook-cover-author {
    font-family: var(--spc-hand);
    font-size: 19px;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 24px;
    align-self: flex-start;
}

.ebook-page .ebook-cover-placeholder-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-family: var(--spc-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.30);
    background: rgba(0, 0, 0, 0.35);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
}

/* Marysia 1-line intro — sits below the Pattern Match bridge */
.ebook-page .spc-marysia-intro {
    margin: 56px auto 0;
    max-width: 600px;
    text-align: center;
    font-family: var(--spc-display);
    font-style: italic;
    font-size: 17px;
    line-height: 1.55;
    color: var(--spc-t-2);
    padding-top: 28px;
    border-top: 1px solid var(--spc-line);
}

/* Trust check — relational risk reversal block (post-price, pre-About) */
.ebook-page .spc-trust-check {
    background: linear-gradient(
        140deg,
        rgba(245, 158, 12, 0.06),
        rgba(42, 209, 103, 0.04)
    );
    border: 1px solid var(--spc-line);
    border-radius: var(--spc-r-lg);
    padding: 36px 40px;
    text-align: left;
}
.ebook-page .spc-trust-check p {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--spc-t-2);
}
.ebook-page .spc-trust-check p:last-child {
    margin-bottom: 0;
}
.ebook-page .spc-trust-mail {
    color: var(--spc-green-400);
    text-decoration: underline;
}
.ebook-page .spc-trust-sig {
    font-family: var(--spc-hand);
    font-size: 21px;
    color: var(--spc-t-1) !important;
    margin-top: 22px !important;
}

