/* ========== THEME ==========
   Light page, black text, red accent like the mockups
================================ */
:root {
    /*--bg: #D9D9D9;*/
    --ink: #0d0d0d;
    --muted: #6f6f75;
    --red: #c7392f; /* primary accent */
    --red-600: #b02f27;
    --border: #ffffff;
    --soft: #f6f6f7; /* very light grey areas */
}

* {
    box-sizing: border-box
}

.p25 {
    font-size: 25px;
    line-height: 34px;
}

html, body {
    margin: 0;
    padding: 0;
    /*overflow-x: hidden;*/
}

body {
    font: 16px/1.6 Nunito;
    color: var(--ink);
    background: var(--bg);
}

img {
    max-width: 100%;
    display: block
}

a {
    text-decoration: none;
    color: inherit
}

/* ========== GRID/CONTAINERS ========== */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ========== HEADER ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fffebf00;
    backdrop-filter: saturate(120%) blur(6px);
    /*border-bottom: 1px solid var(--border);*/
}

.nav {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px
}

.brand {
    font-weight: 800;
    letter-spacing: .2px
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center
}

.nav-links a {
    /*color: var(--ink);*/
    opacity: .85
}

.nav-links a:hover {
    opacity: 1
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    border: 1px solid var(--ink);
    padding: 10px 24px;
    border-radius: 999px;
    transition: .15s;
    background: #fff
}

.btn:hover {
    transform: translateY(-1px)
}

.btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff
}

.btn-primary:hover {
    background: var(--red-600)
}

.btn-secondary {
    background: #fff
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3 {
    font-family: "Playfair Display", serif;
    color: var(--ink);
    margin: 0 0 0
}

h1 {
    font-size: 48px;
    line-height: 1.15
}

h2 {
    font-size: 54px;
    font-weight: 800;
}

h3 {
    font-size: 35px
}

.lead {
    color: #333;
    opacity: .85
}


/* ========== HOME: HERO ========== */
.hero {
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%)
}

.hero-grid {
    display: grid;
    grid-template-columns:1.05fr .95fr;
    gap: 32px;
    align-items: center
}

.hero-copy .price-row {
    display: flex;
    gap: 12px;
    margin: 18px 0 26px
}

.price-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 120px;
    text-align: center;
    background: #fff
}

.price-card .price {
    font-weight: 800
}

.price-card .meta {
    font-size: 12px;
    color: var(--muted)
}

/*.hero-art {*/
/*    justify-self: end;*/
/*    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .12))*/
/*}*/

/* ========== SECTIONS ========== */
.section {
    padding: 70px 0;
    /*border-bottom: 1px solid var(--border)*/
}

.section.alt {
    background: #fafafa
}

.two-col {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 28px;
    align-items: start
}

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

.card {
    background: #fff;
    /*border: 1px solid var(--border);*/
    border-radius: 14px;
    padding: 16px
}

.checklist {
    margin: 0;
    padding: 0 0 0 18px
}

.muted {
    color: var(--muted)
}

.small {
    font-size: 13px
}

/* ========== CTA STRIP ========== */
.cta {
    padding: 64px 0;
    background: #111;
    color: #fff
}

.cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.cta .btn-primary {
    background: var(--red);
    color: #ffffff;
    /*border-color: #fff*/
}

.cta .btn-primary:hover {
    background: #f2f2f2
}

/* ========== CHECKOUT LAYOUT ========== */
.checkout-grid {
    display: grid;
    grid-template-columns:1.1fr .9fr;
    gap: 30px
}

.checkout-main h2 {
    margin: 0 0 14px
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px
}

.form input[type="text"],
.form input[type="email"],
.form input[type="number"],
.form select {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 12px;
    color: var(--ink);
    outline: none
}

.field-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px;
    margin-bottom: 12px
}

.field-grid[data-address] {
    grid-template-columns:1fr 1fr 1fr
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 14px
}

/* ===== Tilted grey panel on the right ===== */
.checkout-summary {
    position: relative
}

.checkout-summary::before {
    content: "";
    position: absolute;
    /*inset: -40px -9999px -40px -40px;*/
    background: #ffffff;
    transform: skewY(-4deg);
    z-index: -1;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.summary-card {
    background: transparent;
    border: none;
    padding-top: 10px
}

.summary-head {
    font-weight: 800;
    margin-bottom: 12px
}

.summary-item {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px
}

.summary-item .thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 6px
}

.pill-row, .price-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 13px
}

.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed var(--border);
    padding-top: 12px;
    margin-top: 8px
}

.total {
    font-weight: 900
}

/* ========== ALERTS ========== */
.alerts .alert {
    background: #fff1f1;
    border: 1px solid #ffd0d0;
    color: #8b1d15;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 8px
}

/* ========== FOOTER ========== */
.site-footer {
    padding: 36px 0;
    border-top: 1px solid var(--border);
    background: #fafafa;
    color: #333
}

/* ========== PAYMENT TILES (still supported if you re-enable) ========== */
.pay-tiles ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px
}

.pay-tiles li {
    margin: 0
}

.pay-tiles input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0
}

.pay-tiles label {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    transition: .15s;
}

.pay-tiles label:has(> input[type="radio"]:checked) {
    outline: 2px solid var(--red);
    border-color: transparent;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(199, 57, 47, .12) inset;
}

.pay-tiles label:has(> input[type="radio"]:focus-visible) {
    outline: 2px dashed var(--red)
}

.pay-tiles label::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #bbb
}

.pay-tiles label:has(> input[type="radio"]:checked)::before {
    border-color: var(--red);
    box-shadow: inset 0 0 0 4px var(--red)
}


/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns:1fr
    }

    .hero-art {
        justify-self: center
    }
}

@media (max-width: 900px) {
    .two-col {
        grid-template-columns:1fr
    }

    .grid-3 {
        grid-template-columns:1fr
    }

    .checkout-grid {
        grid-template-columns:1fr
    }

    .checkout-summary::before {
        transform: none;
        inset: 20px -24px -20px -24px
    }

    .field-grid {
        grid-template-columns:1fr
    }

    .field-grid[data-address] {
        grid-template-columns:1fr
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 38px
    }

    .btn {
        width: 100%;
        text-align: center;
        height: 45px;
    }

    .actions {
        flex-direction: column
    }
}

/*!* ----- Payment tiles ----- *!*/
/*.pay-tiles ul {*/
/*    list-style: none;*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    display: grid;*/
/*    grid-template-columns:1fr 1fr;*/
/*    gap: 12px*/
/*}*/

/*.pay-tiles li {*/
/*    margin: 0*/
/*}*/

/*!* hide the native radios but keep them focusable *!*/
/*.pay-tiles input[type="radio"] {*/
/*    position: absolute;*/
/*    opacity: 0;*/
/*    pointer-events: none;*/
/*    width: 0;*/
/*    height: 0;*/
/*}*/

/*!* the tile itself is the LABEL *!*/
/*.pay-tiles label {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 12px;*/
/*    background: var(--panel);*/
/*    border: 1px solid var(--border);*/
/*    border-radius: 16px;*/
/*    padding: 14px;*/
/*    cursor: pointer;*/
/*    transition: .15s;*/
/*}*/

/*!* highlight WHEN the label contains a checked input *!*/
/*.pay-tiles label:has(> input[type="radio"]:checked) {*/
/*    outline: 2px solid var(--primary);*/
/*    border-color: transparent;*/
/*    background: #151525;*/
/*    box-shadow: 0 0 0 2px rgba(108, 124, 255, .2) inset;*/
/*}*/

/*!* keyboard focus ring *!*/
/*.pay-tiles label:has(> input[type="radio"]:focus-visible) {*/
/*    outline: 2px dashed var(--primary);*/
/*}*/

/*!* optional tiny icon circle *!*/
/*.pay-tiles label::before {*/
/*    content: "";*/
/*    width: 14px;*/
/*    height: 14px;*/
/*    border-radius: 50%;*/
/*    border: 2px solid var(--muted);*/
/*}*/

/*.pay-tiles label:has(> input[type="radio"]:checked)::before {*/
/*    border-color: var(--primary);*/
/*    box-shadow: inset 0 0 0 4px var(--primary);*/
/*}*/

/*!* ----- Mobile polish ----- *!*/
/*@media (max-width: 900px) {*/
/*    .pay-tiles ul {*/
/*        grid-template-columns:1fr*/
/*    }*/
/*}*/

/*@media (max-width: 420px) {*/
/*    .btn {*/
/*        width: 100%;*/
/*        text-align: center*/
/*    }*/

/*    .actions {*/
/*        flex-direction: column*/
/*    }*/
/*}*/

/*!* stack grids nicely on phones *!*/
/*@media (max-width: 900px) {*/
/*    .hero-grid {*/
/*        grid-template-columns:1fr*/
/*    }*/

/*    .two-col {*/
/*        grid-template-columns:1fr*/
/*    }*/

/*    .grid-3 {*/
/*        grid-template-columns:1fr*/
/*    }*/

/*    .checkout-grid {*/
/*        grid-template-columns:1fr*/
/*    }*/

/*    .checkout-summary {*/
/*        position: relative;*/
/*        top: auto*/
/*    }*/

/*    .field-grid {*/
/*        grid-template-columns:1fr*/
/*    }*/

/*    .field-grid[data-address] {*/
/*        grid-template-columns:1fr*/
/*    }*/
/*}*/

/*!* larger tap targets on mobile *!*/
/*@media (max-width: 600px) {*/
/*    .form input, .form select {*/
/*        padding: 14px 14px*/
/*    }*/

/*    .pay-tiles label {*/
/*        padding: 16px*/
/*    }*/
/*}*/

/* ============================
   HERO: black/white split + diagonal cut
   ============================ */
.hero.hero-split {
    position: relative;
    overflow: hidden;
    padding: 84px 0 96px; /* a bit taller like the mock */
    background: #D9D9D9; /* page white on the right side */
    border-bottom: none;
}

.hero.hero-split::before {
    /* LEFT black block */
    content: "";
    position: absolute;
    inset: 0;
    width: 50vw; /* covers left half on desktop */
    background: #0d0d0f; /* deep black */
    transform: none;
    z-index: 0;
}

.hero.hero-split::after {
    /* bottom diagonal white slice */
    content: "";
    position: absolute;
    left: -6vw;
    right: -6vw;
    bottom: -100px;
    height: 160px;
    background: #fff;
    transform: skewY(-3.5deg);
    z-index: 0;
    border-top: 1px solid var(--border);
}

.hero.hero-split .container {
    position: relative;
    z-index: 1
}

.hero.hero-split .hero-grid {
    grid-template-columns:1.05fr .95fr;
    gap: 40px
}

.hero.hero-split .hero-copy {
    color: #fff; /* on dark */
}

.hero.hero-split .hero-copy h1 {
    color: #fff
}

.hero.hero-split .lead {
    color: #d8d8dc;
    opacity: 1
}

.hero.hero-split .price-card {
    background: #131316;
    border-color: #232329;
    color: #fff
}

.hero.hero-split .price-card .meta {
    color: #9a9aa6
}

.hero.hero-split .btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    margin: 3vw 0;
}

/* book art shadow stronger on light side */
/*.hero.hero-split .hero-art {*/
/*    justify-self: end;*/
/*    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .25))*/
/*}*/

/* ============================
   ABOUT / FEATURES band (white)
   ============================ */
.section.section-white {
    background: #fff;
    border-bottom: none;
    padding: 72px 0
}

.section.section-white .card {
    background: #fff
}

/* ============================
   AUTHOR: light grey split with diagonal
   ============================ */
.section.author-split {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    background: #ededf0;
    border-top: none;
    border-bottom: none;
}

.section.author-split::before {
    /* top diagonal white into grey */
    content: "";
    position: absolute;
    left: -6vw;
    right: -6vw;
    top: -80px;
    height: 160px;
    background: #fff;
    transform: skewY(-3.5deg);
    border-bottom: 1px solid var(--border);
}

.section.author-split::after {
    /* bottom diagonal back to white */
    content: "";
    position: absolute;
    left: -6vw;
    right: -6vw;
    bottom: -80px;
    height: 160px;
    background: #fff;
    transform: skewY(-3.5deg);
    border-top: 1px solid var(--border);
}

.section.author-split .two-col {
    grid-template-columns: .9fr 1.1fr;
    align-items: center
}

.author-portrait {
    max-width: 520px;
    width: 100%;
    filter: drop-shadow(0 14px 40px rgba(0, 0, 0, .15));
}

.author-copy h2 {
    margin-bottom: 10px
}

/* ============================
   TOC band (white) + compact cards
   ============================ */
.section.section-toc {
    background: #fff;
    padding: 64px 0 90px
}

.section.section-toc .card {
    padding: 14px 16px;
    /*border-radius: 999px;*/
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center
}

.section.section-toc .card.strong {
    text-align: start;
}

/* ============================
   CTA dark footer strip
   ============================ */
.cta.cta-dark {
    padding: 80px 0;
    background: #0e0e10;
    color: #fff;
    border-top: 1px solid #151515;
}

.cta.cta-dark .btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff
}

.cta.cta-dark .btn-primary:hover {
    background: var(--red-600)
}

/* ============================
   RESPONSIVE tweaks for split sections
   ============================ */
@media (max-width: 1024px) {
    .hero.hero-split::before {
        width: 100%
    }

    /* black fills behind when stacked */
    .hero.hero-split .hero-art {
        justify-self: center
    }
}

@media (max-width: 900px) {
    .hero.hero-split {
        padding: 64px 0 76px
    }

    .section.author-split .two-col {
        grid-template-columns:1fr
    }

    .author-portrait {
        max-width: 420px;
        margin: 0 auto 18px
    }
}


/* ============================
   QUOTE slab (black with angled bottom into grey)
   ============================ */
.section.quote-slab {
    position: relative;
    overflow: hidden;
    padding: 90px 0 150px;
    background: #0b0b0d;
    color: #fff;
    border: 0;
}

.section.quote-slab::before {
    /* optional subtle top white slice; keeps the same diagonal language */
    content: "";
    position: absolute;
    left: -6vw;
    right: -6vw;
    top: -80px;
    height: 160px;
    background: #fff;
    transform: skewY(-3.5deg);
    border-bottom: 1px solid var(--border);
}

.section.quote-slab::after {
    /* the angled bottom edge that "hands off" into the grey author band */
    content: "";
    position: absolute;
    left: -6vw;
    right: -6vw;
    bottom: -80px;
    height: 160px;
    background: rgba(237, 237, 240, 1);
    transform: skewY(-3.5deg);
    border-top: 0 rgba(237, 237, 240, 1);
}

.quote-inner {
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center
}

.section.quote-slab blockquote {
    max-width: 940px;
    text-align: center;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 100;
    /*font-size: 26px;*/
    font-size: 39px;
    /*line-height: 1.9;*/
    color: #f1f1f1;
    /*letter-spacing: .2px;*/
    margin: 0;
}

/* When author follows the quote slab, remove its own top diagonal */
.section.author-split.is-attached {
    padding-top: 0
}

.section.author-split.is-attached::before {
    display: none
}

/* Feather-blend the portrait bottom so it melts into the grey band */
.author-portrait.blend {
    display: block;
    /* fade bottom 30% */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, black 70%, rgba(0, 0, 0, 0) 100%);
    /* let it overlap a bit toward the lower diagonal */
    margin-bottom: -14px;
}

/* Slightly tighten the author layout on wide screens to match composition */
.section.author-split .two-col {
    grid-template-columns: .95fr 1.05fr;
    align-items: center;
    height: 1000px;
}

/* Responsive polish so the diagonals remain clean */
@media (max-width: 900px) {
    .section.quote-slab {
        padding: 70px 0 110px
    }

    .section.quote-slab::before,
    .section.quote-slab::after {
        left: -24px;
        right: -24px
    }

    .author-portrait.blend {
        max-width: 420px;
        margin: 0 auto 6px
    }
}

/* Author portrait base */
.author-portrait {
    display: block;
    max-width: 520px;
    width: 100%;
}

/* Wrapper with drop shadow */
/*.portrait-wrap {*/
/*    position: relative;*/
/*    display: inline-block;*/
/*    filter: drop-shadow(0 14px 40px rgba(0, 0, 0, .15));*/
/*    !* overlap slightly into the lower diagonal so the fade melts in *!*/
/*    margin-bottom: -18px;*/
/*}*/

/* 100%-reliable overlay fade to the author bg (#ededf0) */
.portrait-wrap.blend::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -18px;
    height: 40%;
    /* fade from transparent to the section bg */
    background: linear-gradient(
            to bottom,
            rgba(237, 237, 240, 0) 0%,
            rgb(255, 255, 255) 85%,
            rgba(237, 237, 240, 1) 100%
    );
    pointer-events: none;
}

/* Optional enhancement: keep mask fade for browsers that apply it to <img> */
/*.author-portrait.mask-fade {*/
/*    -webkit-mask-image: linear-gradient(to bottom, black 72%, rgba(0, 0, 0, 0) 100%);*/
/*    mask-image: linear-gradient(to bottom, black 72%, rgba(0, 0, 0, 0) 100%);*/
/*}*/


/* ===== Full-bleed to the LEFT of the page (inside our .container) =====
   Makes the figure align to the viewport's left edge, not the container. */
.bleed-left {
    /*position: relative;*/
    /* Container has max-width:1160px and side padding:24px.
       This calc pushes the element left by the leftover gutter. */
    margin-left: calc((100vw - 1160px) / -2 - 24px);
}

/* keep it from overflowing vertically weirdly */
.section.author-split .two-col > .bleed-left {
    align-self: center
}

/* ===== Existing bottom blend stays (from previous step) ===== */
.portrait-wrap.blend::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -18px;
    height: 40%;
    background: linear-gradient(
            to bottom,
            rgba(237, 237, 240, 0) 0%,
            rgba(237, 237, 240, .85) 75%,
            rgba(237, 237, 240, 1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ===== NEW: right-edge fade into the grey background ===== */
.portrait-wrap.fade-right::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -28px; /* overlap slightly beyond image edge */
    width: 180px; /* how wide the fade is */
    background: linear-gradient(
            to right,
            rgba(237, 237, 240, 0) 0%,
            rgba(237, 237, 240, .85) 75%,
            rgba(237, 237, 240, 1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Make the portrait large enough to read when it’s full-bleed */
.author-portrait {
    display: block;
    /*max-width: 620px; !* adjust to your taste *!*/
    max-width: 100%;
    width: auto;
    filter: none
}

/* Responsive: ease bleed on narrow screens so it doesn’t feel cramped */
@media (max-width: 1200px) {
    .bleed-left {
        margin-left: calc((100vw - 100%) / -2);
    }

    /* simpler safe bleed */
}

@media (max-width: 900px) {
    .bleed-left {
        margin-left: 0;
    }

    /* stop bleeding on phones */
    .portrait-wrap.fade-right::before {
        width: 120px;
        right: -16px;
    }

    .portrait-wrap.blend::after {
        height: 38%;
        bottom: -12px;
    }
}

/* Remove bottom diagonal; keep the author band as a clean grey block */
.section.author-split.is-flat::after {
    display: none;
}

/* Tweak spacing now that the diagonal is gone */
.section.author-split.is-flat {
    padding-bottom: 0;
}

/* Stronger bottom blend into the grey background (works with SVGs) */
.portrait-wrap.blend::after {
    content: "";
    position: absolute;
    left: -14%; /* widen a bit to cover any outer glow from the SVG */
    right: -14%;
    bottom: -28px; /* tuck slightly under the section’s bottom */
    height: 56%; /* more fade area so it looks continuous */
    background: linear-gradient(
            to bottom,
            rgba(237, 237, 240, 0) 0%,
            rgba(237, 237, 240, .60) 55%,
            rgba(237, 237, 240, .85) 80%,
            #ededf0 100%
    );
    pointer-events: none;
    z-index: 2; /* ensure the blend sits above the image */
}

/*!* Right-edge fade (keep as-is; included for completeness) *!*/
/*.portrait-wrap.fade-right::before {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 0;*/
/*    bottom: 0;*/
/*    right: -28px;*/
/*    width: 180px;*/
/*    background: linear-gradient(*/
/*            to right,*/
/*            rgba(237, 237, 240, 0) 0%,*/
/*            rgba(237, 237, 240, .85) 75%,*/
/*            #ededf0 100%*/
/*    );*/
/*    pointer-events: none;*/
/*    z-index: 2;*/
/*}*/

.portrait-wrap.fade-right::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;

    /* put the gradient’s left edge where the image column ends */
    left: 27.5%;

    /* responsive width (min 200px, prefer ~20vw, max 320px) */
    width: clamp(200px, 20vw, 320px);

    background: linear-gradient(
            to right,
            rgba(237, 237, 240, 0) 0%,
            rgba(237, 237, 240, .85) 75%,
            rgba(237, 237, 240, 1) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* =========================================
   FIX: Author band — keep TOP diagonal only,
   remove BOTTOM diagonal, and hide any
   1px seam at the section’s bottom.
   ========================================= */

/* Keep the TOP diagonal (::before) as-is; remove ONLY the BOTTOM one */
.section.author-split::after {
    display: none; /* <-- removes bottom diagonal */
}

/* Safety: the grey section itself should not draw a bottom border */
.section.author-split {
    border-bottom: 0;
}

/* Make the portrait’s bottom fade overlap the section edge a bit more
   so no white seam can peek through at certain zoom levels */
.portrait-wrap.blend::after {
    left: -16%;
    right: -16%;
    bottom: -170px; /* tuck under the section edge */
    height: 35%; /* longer fade for a softer blend */
    background: linear-gradient(
            to bottom,
            rgba(237, 237, 240, 0) 0%,
            rgba(237, 237, 240, .70) 60%,
            rgba(237, 237, 240, .92) 85%,
            #ededf0 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Rare sub-pixel gap fix (some GPUs at odd zoom levels). This nudges
   the TOP diagonal (which we keep) to overlap by 1px so there’s never
   a hairline between the black quote slab and the grey author band. */
.section.author-split::before {
    margin-bottom: -1px;
}

/* If the next white section tried to draw a top border, suppress it */
.section.author-split + .section {
    border-top: 0;
}

/* ============================
   CHAPTERS slab (diagonal light grey)
   ============================ */
.section.chapters-slab {
    position: relative;
    overflow: hidden;
    padding: 82px 0; /* visual height */
    background: #ededf0; /* same grey you use */
    border-top: 1px solid #ffffff; /* blend with white above */
    border-bottom: 1px solid #ffffff;
}

/* top & bottom diagonals just for this slab */
.section.chapters-slab::before,
.section.chapters-slab::after {
    content: "";
    position: absolute;
    left: -6vw;
    right: -6vw;
    height: 150px;
    transform: skewY(3.5deg);
    z-index: 0;
}

.section.chapters-slab::before { /* top slice from white into grey */
    top: -100px;
    background: #ffffff;
    /*border-bottom: 1px solid #ffffff;*/
}

.section.chapters-slab::after { /* bottom slice back to white */
    bottom: -100px;
    background: #ffffff;
    /*border-top: 1px solid #ffffff;*/
}

/* layout */
.chapters-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 28px;
    align-items: center;
}

.chapters-copy h2 {
    margin-bottom: 18px;
}

/* native accordion styling */
.acc {
    /*background: #ffffff;*/
    /*border: 1px solid #ececec;*/
    border-radius: 12px;
    margin: 12px 0;
    overflow: hidden;
}

.acc summary {
    list-style: none; /* removes default marker */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}

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

.acc h3 {
    font-size: 22px;
    margin: 0;
    font-family: "Playfair Display", serif
}

/* small chevron */
.acc .chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid #c7392f; /* red accent */
    border-bottom: 2px solid #c7392f;
    transform: rotate(-45deg);
    transition: transform .2s ease;
}

.acc[open] .chev {
    transform: rotate(135deg);
}

/* link under accordions */
.chapters-more {
    display: flex;
    justify-content: end;
    margin-top: 30px;
    color: #c7392f;
    font-weight: 600;
    text-decoration: underline 1px;
    /*border-bottom: 1px dashed rgba(199, 57, 47, .35);*/
}

/* book art */
.chapters-art img {
    width: 100%;
    max-width: 520px;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, .18));
    transform: rotate(-2deg);
    transform-origin: center;
}

/* responsive */
@media (max-width: 1024px) {
    .chapters-grid {
        grid-template-columns: 1fr;
    }

    .chapters-art {
        order: -1;
        justify-self: center;
    }

    .chapters-art img {
        transform: none;
    }
}

/* ========== INFO slab (ear) ========== */
.section.info-slab {
    position: relative;
    overflow: hidden;
    background: #ffffff; /* light grey band like the mock */
    border: 0;
    padding: 72px 0; /* vertical rhythm similar to others */
    padding-bottom: 20vw;
}

/* Top diagonal only (white slice). Bottom stays flat */
.section.info-slab::before {
    content: "";
    position: absolute;
    left: -6vw;
    right: -6vw;
    top: -90px;
    height: 160px;
    background: #ffffff; /* page white above */
    transform: skewY(3.5deg); /* diag: left high → right low (like screenshot) */
    border-bottom: 1px solid #ffffff;
    z-index: 0;
}

/* Layout */
.info-grid {
    position: relative;
    z-index: 1; /* above the diagonal slice */
    display: grid;
    grid-template-columns: .9fr 1.1fr; /* image left, text right */
    gap: 32px;
    align-items: center;
}

/* Ear image */
.info-art img {
    max-width: 520px;
    width: 100%;
    display: block;
    filter: drop-shadow(0 14px 32px rgba(0, 0, 0, .12));
}

/* Headline spacing */
.info-copy h2 {
    margin: 0 0 18px;
}

/* Optional: a bit of padding inside dropdown content */
.acc-body {
    padding: 0 18px 14px;
    font-size: 22px;
    font-family: 'Nunito', sans-serif;
}

/* Chevron reuse (if you already styled .chev, this is not needed) */
.acc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
}

.acc summary .chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid #0b0b0d;
    border-bottom: 2px solid #0b0b0d;
    transform: rotate(-45deg);
}

.acc[open] summary .chev {
    transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-art img {
        max-width: 420px;
        margin: 0 auto;
    }
}

/* keep items aligned from the top, not centered */
.info-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr; /* your existing columns */
    gap: 32px;
    align-items: start; /* <-- changed from center */
}

/* pin the ear image */
.info-art {
    align-self: start; /* top of the row */
    /*position: sticky; !* sticks while scrolling *!*/
    top: 96px; /* tweak to sit nicely under your header */
    z-index: 1; /* above the grey bg slice */
}

/* image itself unchanged */
.info-art img {
    max-width: 520px;
    width: 100%;
    display: block;
    filter: drop-shadow(0 14px 32px rgba(0, 0, 0, .12));
}

/* mobile: revert to normal flow so it doesn't cover content */
@media (max-width: 900px) {
    .info-art {
        position: static;
        top: auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== CTA: floating book over full-black bar ===== */
.cta.cta-book {
    position: relative;
    background: #0b0b0d; /* solid black bar */
    color: #fff;
    padding: 460px 0 96px; /* tall so the book can overlap */
    overflow: visible; /* allow the book to sit above */
    border-top: 1px solid #151515; /* keeps your theme rhythm */
}

.cta-book-floating {
    position: absolute;
    left: 50%;
    top: -120px; /* how far the book floats up */
    transform: translateX(-30%);
    pointer-events: none; /* clicks go through */
    z-index: 1;
    scale: 2;
}

.cta-book-img {
    width: min(480px, 60vw);
    display: block;
    filter: drop-shadow(0 32px 64px rgba(0, 0, 0, .55));
}

/* content inside the black bar */
.cta-book-inner {
    position: relative;
    z-index: 2; /* above the background, below book shadow */
    text-align: center;
}

.cta-book-inner h2 {
    font-family: "Playfair Display", serif;
    font-size: 34px;
    line-height: 1.25;
    margin: 8px 0 10px;
}

.cta-book-old {
    color: #d9d9d9;
    opacity: .85;
    text-decoration: line-through;
    margin-bottom: 6px;
    font-size: 14px;
}

.cta-book-price {
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

/* red, pill-shaped button */
.btn-pill {
    border-radius: 999px;
    padding: 12px 22px;
}

.cta-book-btn {
    background: var(--red); /* ensure it’s red even if other CTAs differ */
    border-color: var(--red);
    color: #fff;
}

.cta-book-btn:hover {
    background: var(--red-600);
    border-color: var(--red-600);
}

.cta-book-meta {
    margin-top: 18px;
    font-size: 13px;
    opacity: .95;
    display: inline-flex;
    gap: 26px;
}

/* ---- Responsive polish ---- */
@media (max-width: 900px) {
    .space {
        padding-top: 15vw;
    }

    .cta.cta-book {
        padding: 140px 0 84px;
    }

    .cta-book-floating {
        top: -170px;
    }

    .cta-book-img {
        width: min(420px, 70vw);
    }
}

@media (max-width: 520px) {
    .cta.cta-book {
        padding: 120px 0 72px;
    }

    .cta-book-floating {
        top: -140px;
    }

    .cta-book-img {
        width: min(360px, 78vw);
    }

    .cta-book-inner h2 {
        font-size: 28px;
    }
}

/* ===== Enhanced footer (mockup-like) ===== */
.site-footer.pro-footer {
    background: #fafafa;
    color: #222;
    border-top: 1px solid #eaeaea;
    padding: 40px 0 38px;
}

.footer-wrap {
    max-width: 920px; /* tighter center column like the mock */
    margin: 0 auto;
    text-align: center;
}

.footer-nav,
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 28px;
    margin: 8px 0;
}

.footer-nav a,
.footer-legal a {
    font-size: 14px;
    color: #222;
    opacity: .85;
    text-decoration: none;
}

.footer-nav a:hover,
.footer-legal a:hover {
    opacity: 1;
    color: #0d0d0d;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0 18px;
}

.footer-socials .social {
    width: 34px;
    height: 34px;
    border: 1px solid #e6e6e6;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    transition: .15s;
    background: #fff;
}

.footer-socials .social:hover {
    border-color: #c7392f;
    color: #c7392f; /* red accent on hover */
    transform: translateY(-1px);
}

.footer-rule {
    border: 0;
    border-top: 1px solid #ededed;
    margin: 18px auto 16px;
    max-width: 760px;
}

.footer-copy {
    display: grid;
    gap: 6px;
    justify-items: center;
    font-size: 12px;
    color: #333;
}

.footer-copy .muted {
    color: #6f6f75;
}

/* mobile polish */
@media (max-width: 600px) {
    .footer-nav, .footer-legal {
        gap: 12px 18px;
    }
}

@media (max-width: 900px) {
    .cta.cta-book {
        margin-top: 40vw;
    }

    .author-portrait {
        display: none;
    }

    .section.author-split .two-col {
        grid-template-columns: 1fr;
        height: auto;
    }

    .portrait-wrap.fade-right::before {
        display: none;
    }

    .portrait-wrap.fade-right::after {
        display: none;
    }

    .hero.hero-split .hero-art {
        display: none;
    }

    .hero.hero-split .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero.hero-split::after {
        display: none;
    }

    /*.section.quote-slab::before, .section.quote-slab::after {*/
    /*    display: none;*/
    /*}*/
    .author-copy {
        padding-bottom: 5vw;
    }

    .mobile {
        display: none;
    }

    .brand {
        display: none;
    }

    .site-header {
        display: none;
    }
}

/* two-column checkout */
.checkout-grid-2col {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* stack on small screens */
@media (max-width: 900px) {
    .checkout-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* cards / summary */
.summary-card {
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 10px;
    background: #fff;
}

.summary-head {
    font-weight: 700;
    margin-bottom: 12px;
}

.summary-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.summary-item .thumb {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.price-row {
    display: flex;
    gap: 8px;
    margin: 6px 0;
}

.pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f3f3;
    font-size: .9rem;
}

.small.muted {
    color: #6b7280;
    font-size: .9rem;
}

.qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
}

.qty-row input.qty-input {
    width: 88px;
    text-align: center;
}

.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    font-weight: 600;
}

.actions-right {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.field-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 16px;
}

.field-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 600px) {
    .field-grid {
        grid-template-columns: 1fr;
    }
}

/* === Checkout inputs: consistent size, radius, focus ring === */
.checkout-main input[type="text"],
.checkout-main input[type="email"],
.checkout-main input[type="tel"],
.checkout-main input[type="number"],
.checkout-main input[type="search"],
.checkout-main input[type="password"],
.checkout-main select,
.checkout-summary .qty-row input {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #D7DBE0; /* light grey border */
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    line-height: 1.2;
    color: #111827; /* near-black text */
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* Placeholder color */
.checkout-main ::placeholder,
.checkout-summary ::placeholder {
    color: #9AA4B2;
}

/* Hover */
.checkout-main input:hover,
.checkout-main select:hover,
.checkout-summary .qty-row input:hover {
    border-color: #C8CED6;
}

/* Focus ring (matches your red primary but subtle) */
.checkout-main input:focus,
.checkout-main select:focus,
.checkout-summary .qty-row input:focus {
    outline: none;
    border-color: #D14B3B; /* your button red */
    box-shadow: 0 0 0 3px rgba(209, 75, 59, 0.15); /* soft red glow */
}

/* Disabled look (if you ever disable) */
.checkout-main input:disabled,
.checkout-main select:disabled {
    background: #F3F4F6;
    color: #9AA4B2;
    cursor: not-allowed;
}

/* Number input: remove spinners (Chrome/Edge/Safari) */
.checkout-main input[type="number"]::-webkit-outer-spin-button,
.checkout-main input[type="number"]::-webkit-inner-spin-button,
.checkout-summary .qty-row input[type="number"]::-webkit-outer-spin-button,
.checkout-summary .qty-row input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Number input: remove spinners (Firefox) */
.checkout-main input[type="number"],
.checkout-summary .qty-row input[type="number"] {
    -moz-appearance: textfield;
}

/* Quantity input in the summary: smaller, centered */
.checkout-summary .qty-row input.qty-input {
    max-width: 120px;
    text-align: center;
}

/* Pretty select with custom caret */
.checkout-main select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 38px; /* room for arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%239AA4B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

/* Error list from Django (shows below the field’s label) */
.field-grid .errorlist {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.field-grid .errorlist li {
    color: #B00020; /* accessible red */
    font-size: 13px;
}

/* If you render field errors with a class, you can add red border: */
input.is-invalid, select.is-invalid {
    border-color: #B00020 !important;
    box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.12);
}


/* ===== About / features ===== */
.section-toc .features-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 48px 56px;
    align-items: start;
}

.section-toc .feature {
    text-align: center;
    padding: 0 12px;
}

.section-toc .feature-icon {
    display: block;
    margin: 0 auto 14px;
    width: 44px;
    height: 44px;
}

/* Headline style like the reference (bold red, tight leading) */
.section-toc .feature h3 {
    margin: 6px 0 10px;
    font-weight: 800;
    font-size: 22px; /* tweak to match your typographic scale */
    line-height: 1.25;
    color: #C5342E; /* your brand red */
}

/* Body text under each card */
.section-toc .feature p {
    margin: 0;
    color: #2F3747; /* softer black */
    line-height: 1.6;
}

/* Mobile stack */
@media (max-width: 900px) {
    .section-toc .features-grid {
        grid-template-columns:1fr;
        gap: 28px;
    }
}

/* Base layout reused by both 3-up sections */
.section-toc .features-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 48px 56px;
    align-items: start;
}

.section-toc .feature {
    text-align: center;
    padding: 0 0;
}

.section-toc .feature-icon {
    display: block;
    margin: 24px auto 24px;
    width: 50px;
    height: 50px;
}

.section-toc .feature h3 {
    margin: 6px 0 24px;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.25;
    color: #C5342E; /* brand red */
}

.section-toc .feature p {
    margin: 0;
    color: #2F3747;
    line-height: 1.6;
    font-family: 'Nunito', sans-serif;
}

@media (max-width: 900px) {
    .section-toc .features-grid {
        grid-template-columns:1fr;
        gap: 28px;
    }
}

/* Slight spacing tune for the TOP features row */
.section-toc .features-top .feature-icon {
    margin-bottom: 8px;
}

.section-toc .features-top .feature h3 {
    font-size: 20px;
}

/* Split sticky header */
.site-header.split {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 15%);
}

.site-header .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 24px;
}

.site-header .brand {
    font-family: "Playfair Display", serif;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: .2px;
}

/* Right side */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Style layer for your existing links */
.nav-link {
    position: relative;
    color: #ffffff; /* dark text on light side */
    text-decoration: none;
    font-weight: 500;
    line-height: 1;
    padding: 4px 0;
}

/* underline on hover/active */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: currentColor;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity .18s ease, transform .18s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    opacity: 1;
    transform: translateY(0);
}

/* Buy button */
.btn.buy {
    background: #c33833;
    color: #fff;
    border: 0;
    border-radius: 26px;
    padding: 10px 22px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .12s ease, filter .12s ease;
}

.btn.buy:hover {
    transform: translateY(-1px);
    filter: brightness(.98);
}

.btn.buy:active {
    transform: translateY(0);
}

/* Responsive tweaks (does NOT touch your `.mobile` logic) */
@media (max-width: 960px) {
    .site-header .nav {
        padding: 12px 16px;
    }

    .nav-links {
        gap: 18px;
    }

    .site-header .brand {
        font-size: 22px;
    }
}

/* Nav underline — hover only */
.nav-links .nav-link {
    position: relative;
    padding: 8px 10px;
    text-decoration: none;
}

/* draw underline with ::after */
.nav-links .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
    opacity: 0.9;
}

/* show on hover/focus */
.nav-links .nav-link:hover::after,
.nav-links .nav-link:focus-visible::after {
    transform: scaleX(1);
}

/* if some CSS elsewhere forces an "active" underline, cancel it */
.nav-links .nav-link.is-active::after {
    transform: scaleX(0); /* no persistent underline */
}


.hero-title {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    line-height: 1.05;
    /*font-size: clamp(44px, 6vw, 78px);*/
    font-size: 86px;
    letter-spacing: 0.5px;
    margin: 0 0 18px;
}

.hero-lead {
    /*font-size: clamp(18px, 2.1vw, 22px);*/
    font-size: 23px;
    line-height: 1.55;
    margin: 0;
}

/* ===== Mobile Header ===== */
.mobile-header {
    display: none;
}

/* show only on phones (your desktop header is already hidden there) */
@media (max-width: 900px) {
    .mobile-header {
        display: block;
        position: sticky;
        top: 0;
        z-index: 1001;
        background: #ddd; /* like the mock grey */
        backdrop-filter: saturate(120%) blur(4px);
    }

    .mobile-bar {
        min-height: 64px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
    }

    .mobile-header .brand {
        font-family: "Playfair Display", serif;
        font-weight: 800;
        font-size: 22px;
        color: #ffffff;
        text-decoration: none;
        margin-right: auto; /* left align, others to the right */
    }

    /* buy button (reuse .btn.buy but slightly smaller on phones) */
    .mobile-header .btn.buy {
        padding: 8px 18px;
        border-radius: 999px;
        font-weight: 700;
        width: 25vw;
    }

    /* hamburger button */
    .mobile-toggle {
        /*margin-left: 8px;*/
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        background: #fff;
        border: 1px solid #e3e3e3;
        border-radius: 8px;
    }

    .mobile-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: #111;
        border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }

    .mobile-toggle span + span {
        margin-top: 4px;
    }

    /* X state */
    .mobile-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* drawer */
    .mobile-drawer {
        display: grid;
        gap: 2px;
        background: #fff;
        border-top: 1px solid #ececec;
        padding: 10px 12px 14px;
    }

    .mobile-drawer .nav-link.mobile {
        display: block;
        color: #111;
        font-weight: 600;
        padding: 10px 8px;
        border-radius: 8px;
    }

    .mobile-drawer .nav-link.mobile:hover {
        /*background: #f5f5f5;*/
    }

    /* keep your desktop header hidden on phones (you already had these) */
    .site-header {
        /*display: none;*/
    }
}

/* small helper for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Mobile header + panel (≤440px) ---------- */
@media (max-width: 440px) {
    /* bring header & brand back (override older rule) */
    .site-header {
        display: block !important;
    }

    .brand {
        display: inline-block !important;
        color: #111;
        font-size: 20px;
        font-weight: 800;
    }

    /* hide desktop link row on tiny screens; show the toggle */
    .nav-links {
        display: none !important;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        border: 1px solid #e1e1e1;
        background: #fff;
        color: #111;
    }

    /* make header background light (like your reference) */
    /*.site-header.split {*/
    /*    background: rgba(0, 0, 0, 0);*/
    /*}*/
    .site-header .nav {
        padding: 12px 16px;
        display: none;
    }

    /* smaller pill for buy button inside panel header */
    .btn.btn--sm {
        padding: 8px 14px;
        border-radius: 999px;
    }

    /* --- off-canvas --- */
    .offcanvas {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(86vw, 360px);
        background: #fff;
        box-shadow: -24px 0 60px rgba(0, 0, 0, .18);
        transform: translateX(100%);
        transition: transform .25s ease;
        z-index: 1200;
        display: flex;
        flex-direction: column;
    }

    .offcanvas.is-open {
        transform: translateX(0);
    }

    .offcanvas[hidden] {
        display: block;
    }

    /* keep anim, but hidden by transform */
    .offcanvas__header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        background: #e3e3e3;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .offcanvas__close {
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        border: 1px solid #e1e1e1;
        background: #fff;
        color: #111;
    }

    .offcanvas__links {
        padding: 14px 18px;
        display: grid;
        gap: 14px;
    }

    .offcanvas__links a {
        color: #111;
        font-weight: 700;
        text-decoration: none;
    }

    .offcanvas__backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .35);
        z-index: 1190;
    }

    .offcanvas__backdrop[hidden] {
        display: none;
    }
}

/* small polish so desktop button keeps rounded look everywhere */
.btn.buy {
    border-radius: 26px;
}

@media (max-width: 900px) {
    .mobile {
        display: none;
    }

    .brand {
        display: none;
    }

    .site-header {
        display: none;
    }
}

/*html, body {*/
/*    overflow-x: hidden;*/
/*}*/

/* stop sideways scroll on phones */
.mobile-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 15%);
}

.mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    max-width: 1160px;
    margin: 0 auto;
}

.mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 0;
    background: none;
    color: #fff;
    /*box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);*/
    font-size: 18px;
    line-height: 1;
    cursor: pointer
}

.mobile-toggle span {
    display: none
}

/* keep spans for a11y, we’ll show a glyph instead */
#mobile-drawer[hidden] {
    display: none
}

.mobile-drawer {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, .06);
    padding: 14px 16px
}

.mobile-drawer a {
    display: block;
    padding: 10px 0
}

/* hide hamburger on desktop */
@media (min-width: 901px) {
    .mobile-header {
        display: none
    }
}

/* ensure it shows on phones (your big CSS already hides .site-header under 900px) */
@media (max-width: 900px) {
    .mobile-header {
        display: block
    }
}

/* ===== Mobile-only hero (book image on light-grey) ===== */
.mobile-hero {
    display: none; /* hidden on desktop */
    background: #D9D9D9; /* same light grey as mock */
    padding: 18px 0 6px; /* compact top band */
    border-bottom: 0;
}

.mobile-hero__wrap {
    text-align: center;
}

.mobile-hero__img {
    width: min(520px, 86vw); /* big but safe on phones */
    margin: 6px auto 0;
    display: block;
    filter: drop-shadow(0 22px 44px rgba(0, 0, 0, .25));
}

/* Show the mobile hero only on small screens */
@media (max-width: 900px) {
    .mobile-hero {
        display: block;
    }

    /* Keep your existing black hero below, without its bottom diagonal */
    .hero.hero-split::after {
        display: none;
    }

    /* We already hide the desktop art on phones in your CSS, keep it that way */
    .hero.hero-split .hero-art {
        display: none;
    }

    /* Optional: a tad less top padding on the black hero so spacing feels tight */
    .hero.hero-split {
        padding-top: 48px;
    }
}

@media (max-width: 440px) {
    .section.quote-slab {
        padding: 0
    }

    .section.section-toc {
        padding: 0;
    }

    .hero-title {
        font-size: clamp(41px, 6vw, 78px);
        text-align: center;
    }

    .hero-lead {
        font-size: clamp(15px, 2.1vw, 22px);
        text-align: center;
        line-height: 36px;
    }

    h1 {
        font-size: 47px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 22px;
    }

    .p25 {
        font-size: 20px;
    }

    .footer-nav a .footer-legal a {
        font-size: 11px;
    }

    .section.quote-slab blockquote {
        font-size: 25px;
    }

    /*.portrait-wrap.fade-right::before {*/
    /*    display: block;*/
    /*}*/
    /*.portrait-wrap.fade-right::after {*/
    /*    display: block;*/
    /*}*/
    .author-portrait {
        display: block;
    }

    /*.author-portrait > img {*/
    /*    display: block;*/
    /*    margin-left: auto;*/
    /*    margin-right: auto*/
    /*}*/
    .bleed-left {
        position: relative;
        margin-left: calc((100vw - 50%) / -2);
        margin-right: calc((100vw - 50%) / -2);
        /*margin-top: -350px;*/
    }

    /* ===== MOBILE AUTHOR PORTRAIT CARD — EXACT LOOK ===== */
    /* Section sits right under the black quote slab, overlapping slightly */
    .section.quote-slab + .author-split.is-attached {
        margin-top: -9vw;
    }

    /* Two columns collapse to a single column on mobile */
    .author-split .two-col {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: center;
    }

    /* The grey tilted card */
    .author-split .portrait-wrap {
        position: relative;
        /*width: 100%;*/
        aspect-ratio: 3 / 4; /* fixed card proportion */
        /*background: #e7e7ea; !* light grey, matches ref *!*/
        border-radius: 0; /* sharp corners like the mockup */
        /*overflow: hidden;*/
        /*box-shadow: 0 20px 40px rgba(0, 0, 0, .18);*/
        /*transform: rotate(-8deg); !* exact tilt of the card *!*/
        /*backface-visibility: hidden;*/
        /*transform-origin: 50% 50%;*/
    }

    /*!* subtle top sheen (printed-card feel) *!*/
    /*.author-split .portrait-wrap::before {*/
    /*    content: "";*/
    /*    position: absolute;*/
    /*    inset: 0;*/
    /*    pointer-events: none;*/
    /*    background: linear-gradient(to bottom, rgba(255, 255, 255, .36), rgba(255, 255, 255, 0) 120px);*/
    /*    mix-blend-mode: screen;*/
    /*}*/
    /* The portrait inside the tilted card */
    .author-portrait {
        /*position: absolute;*/
        /* bleed beyond edges so no gaps when rotated */
        top: -6%;
        right: -8%;
        bottom: -12%;
        left: -8%;
        /*width: 116%;*/
        max-width: 520px;
        height: auto;
        object-fit: cover;
        /*transform: rotate(8deg) translateY(2%); !* counter the wrapper tilt *!*/
        transform-origin: 50% 50%;
        image-rendering: auto;
        /* bottom fade to transparent like the reference */
        /*-webkit-mask-image: linear-gradient(to bottom, #000 78%, rgba(0, 0, 0, 0) 100%);*/
        mask-image: linear-gradient(to bottom, #000 70%, rgba(0, 0, 0, 0) 100%);
        backface-visibility: hidden;
    }

    /* Fallback for browsers without mask-image: add a gradient overlay */
    @supports not ((-webkit-mask-image: linear-gradient(#000,#000)) or (mask-image: linear-gradient(#000,#000))) {
        .author-split .portrait-wrap::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 28%;
            background: linear-gradient(to bottom, rgba(231, 231, 234, 0), #e7e7ea 90%);
            pointer-events: none;
        }
    }

    /* Copy column text tweaks to match spacing/feel */
    .author-split .author-copy {
        text-wrap: balance;
    }

    .author-copy {
        text-align: center;
    }

    .author-copy h2 {
        line-height: 44px;
    }

    .cure {
        font-size: 25px;
        padding-top: 5vw;
    }

    .top {
        margin: 10vw 0 0 0;
    }

    .bot {
        margin: 0 0 8vw 0;
    }

}

/* ==== Checkbox (billing -> shipping) ==== */
:root {
    --brand: #c7392f; /* accent color */
    --ink: #1d1d20;
    --muted: #6f6f75;
    --line: #d9d9e2;
}

label.checkbox {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    user-select: none;
    color: var(--ink);
}

/* Hide the default look, keep it keyboard-focusable */
label.checkbox > input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--line);
    border-radius: 6px;
    background: #fff;
    display: inline-block;
    position: relative;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
    outline: none;
}

label.checkbox > input[type="checkbox"]:hover {
    border-color: #bfc0c9;
}

label.checkbox > input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 4px rgba(199, 57, 47, .16);
    border-color: var(--brand);
}

label.checkbox > input[type="checkbox"]:checked {
    background: var(--brand);
    border-color: var(--brand);
}

/* The tick */
label.checkbox > input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

label.checkbox > input[type="checkbox"]:disabled {
    opacity: .55;
    cursor: not-allowed;
}

label.checkbox > span {
    font-size: 1rem;
    line-height: 1.2;
    color: var(--ink);
}

/* Optional: smaller variant */
label.checkbox.checkbox--sm > input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

label.checkbox.checkbox--sm > input[type="checkbox"]:checked::after {
    width: 5px;
    height: 8px;
}

/* Optional dark-mode tweak */
@media (prefers-color-scheme: dark) {
    label.checkbox > input[type="checkbox"] {
        background: #ffffff;
        border-color: #3a3a45;
    }

    label.checkbox > span {
        color: #000;
    }
}

.price-row {
    display: flex;
    gap: 1.5rem;
}

.price-card {
    background: #111; /* keep your current look */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 140px;
}

.price-old {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.price-block {
    display: inline-block; /* so it hugs the cards */
}

.price-pretitle {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.65); /* match your dark bg */
    text-transform: uppercase;
}

.price-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space between prices and button */
    margin-top: 1.5rem;
}

.price-block {
    display: inline-block;
}

.price-pretitle {
    display: inline-block;
    background: rgba(199, 57, 47, 0.15);
    color: #c7392f;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.price-row {
    display: flex;
    gap: 1.5rem;
}

.price-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.1rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 140px;
}

.price-old {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
}

.price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.hero-cta {
    display: inline-block;
    background: #c7392f;
    color: #fff;
    padding: 0.9rem 2.7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    width: fit-content;
}


@media (max-width: 480px) {
    width: auto;
}

@media (max-width: 768px) {
    /* make the wrapper stack */
    .checkout-grid-2col {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    /* show summary FIRST on mobile */
    .checkout-summary {
        order: 1;
    }

    /* show the big form (where "Запази доставка" lives) AFTER it */
    .checkout-main {
        order: 2;
    }
}