:root {
    --ink: #172033;
    --muted: #526077;
    --primary: #4338ca;
    --primary-dark: #312e81;
    --accent: #0f766e;
    --cta: #e11d48;
    --line: #dce3ef;
    --soft: #f5f7fb;
    --white: #ffffff;
    --shadow: 0 14px 34px rgba(23, 32, 51, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--soft);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
}

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

.books-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.books-sticky-header {
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.books-header {
    border-bottom: 1px solid rgba(220, 227, 239, 0.9);
    background: rgba(255, 255, 255, 0.98);
}

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

.books-brand {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 950;
    line-height: 1.05;
    text-decoration: none;
}

.books-brand span {
    display: block;
    margin-top: 4px;
    color: var(--cta);
    font-size: 0.8rem;
    font-weight: 750;
}

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

.books-nav-links a {
    display: inline-flex;
    min-height: 42px;
    padding: 10px 12px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
}

.books-nav-links a.is-primary {
    padding-inline: 18px;
    background: var(--cta);
    color: var(--white);
    font-weight: 850;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.18);
}

.books-nav-links a.is-primary:hover,
.books-nav-links a.is-primary:focus-visible {
    background: #be123c;
    color: var(--white);
}

.books-trust-bar {
    padding: 12px 0;
    border-bottom: 1px solid #c7d2fe;
    background: #eef2ff;
}

.books-trust-items {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 750;
}

.books-trust-items span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.books-nav-links a:hover,
.books-nav-links a:focus-visible {
    background: #eef2ff;
    color: var(--primary-dark);
}

.books-hero,
.book-detail-hero {
    padding: 64px 0 46px;
    text-align: center;
}

.books-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.books-hero h1,
.book-detail-hero h1 {
    max-width: 880px;
    margin: 0 auto 14px;
    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1.06;
}

.books-lead {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.books-author-proof {
    max-width: 880px;
    margin: 26px auto 0;
    padding: 16px 18px;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    background: #eef2ff;
    color: var(--primary-dark);
    font-weight: 750;
    line-height: 1.5;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 58px;
}

.book-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.07);
}

.book-card-cover-link {
    display: flex;
    width: 100%;
    height: 350px;
    min-height: 0;
    padding: 18px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #edf1f7;
}

.book-card-cover {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 314px !important;
    margin: 0 auto;
    object-fit: contain !important;
    object-position: center;
    box-shadow: 0 12px 26px rgba(23, 32, 51, 0.2);
}

.book-card-body {
    padding: 22px;
}

.book-card-body h2 {
    margin: 0 0 10px;
    color: var(--primary-dark);
    font-size: 1.12rem;
    line-height: 1.3;
}

.book-card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

.book-card-availability {
    display: grid;
    gap: 7px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.book-card-availability span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.book-card-availability strong {
    color: var(--ink);
}

.book-offer-tag {
    margin-top: 3px;
    padding: 8px 10px;
    border: 1px solid #86efac;
    border-radius: 6px;
    background: #f0fdf4;
    color: #166534 !important;
    font-weight: 850;
    text-align: center;
}

.book-offer-tag.is-free {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8 !important;
}

.book-card-action {
    display: inline-flex;
    min-height: 44px;
    margin-top: 18px;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 850;
    text-decoration: none;
}

.books-method {
    padding: 50px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.books-method h2,
.book-content h2,
.other-books h2 {
    margin: 0 0 12px;
    color: var(--primary-dark);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.books-method-copy {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.65;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.method-step {
    padding: 22px;
    border-left: 4px solid var(--primary);
    background: var(--soft);
}

.method-step strong {
    display: block;
    margin-bottom: 7px;
    color: var(--primary-dark);
}

.method-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.books-footer {
    padding: 34px 0;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.breadcrumb {
    padding-top: 26px;
    color: var(--muted);
    font-size: 0.88rem;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 750;
    text-decoration: none;
}

.book-detail-cover {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto !important;
    margin: 0 auto 28px;
    object-fit: contain !important;
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.22);
}

.book-author {
    margin: 0 0 12px;
    color: var(--primary-dark);
    font-weight: 850;
}

.book-store-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.book-format-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 760px;
    margin: 24px auto 0;
    text-align: left;
}

.book-format-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.book-format-grid strong,
.book-format-grid span {
    display: block;
}

.book-format-grid strong {
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.book-format-grid span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.book-button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 850;
    text-decoration: none;
}

.book-button.amazon {
    border-color: #fbbf24;
    background: #fffbeb;
    color: #92400e;
}

.book-button.google {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.book-button.app {
    background: var(--primary);
    color: var(--white);
}

.book-content {
    padding: 52px 0;
    background: var(--white);
}

.book-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 30px;
    align-items: start;
}

.book-content p {
    color: var(--muted);
    line-height: 1.65;
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.topic-list span {
    padding: 8px 11px;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    background: #eef2ff;
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 750;
}

.app-companion {
    padding: 24px;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    background: #f0fdfa;
}

.app-companion h2 {
    font-size: 1.35rem;
}

.app-companion .book-button {
    margin-top: 12px;
}

.book-gift {
    padding: 52px 0;
    border-top: 1px solid #bbf7d0;
    border-bottom: 1px solid #bbf7d0;
    background: #f0fdf4;
    text-align: center;
}

.book-gift.is-free {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.book-gift h2 {
    margin: 0 0 12px;
    color: var(--primary-dark);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.book-gift-lead {
    max-width: 820px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.65;
}

.book-gift-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
    text-align: left;
}

.book-gift-steps div {
    padding: 18px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: var(--white);
}

.book-gift-steps strong,
.book-gift-steps span {
    display: block;
}

.book-gift-steps strong {
    margin-bottom: 6px;
    color: #166534;
}

.book-gift-steps span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.book-gift-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.book-button.whatsapp {
    background: #128c7e;
    color: var(--white);
}

.book-gift-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.other-books {
    padding: 48px 0 58px;
}

.other-books-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.other-book {
    display: block;
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}

.other-book img {
    width: 100%;
    height: auto;
    margin-bottom: 9px;
    object-fit: contain;
    box-shadow: 0 8px 18px rgba(23, 32, 51, 0.14);
}

@media (max-width: 860px) {
    .books-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-content-grid {
        grid-template-columns: 1fr;
    }

    .other-books-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .books-shell {
        width: min(100% - 24px, 1120px);
    }

    .books-nav {
        min-height: 0;
        padding: 12px 0;
        flex-direction: column;
        align-items: stretch;
    }

    .books-nav-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .books-nav-links a {
        width: 100%;
        padding-inline: 8px;
        text-align: center;
    }

    .books-trust-items {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 14px;
        font-size: 0.75rem;
    }

    .books-trust-items span {
        align-items: flex-start;
    }

    .books-hero,
    .book-detail-hero {
        padding: 42px 0 36px;
    }

    .books-grid,
    .method-grid {
        grid-template-columns: 1fr;
    }

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

    .book-card-cover-link {
        width: 110px;
        height: 180px;
        padding: 12px;
        align-items: center;
    }

    .book-card-cover {
        width: auto !important;
        max-width: 86px !important;
        height: auto !important;
        max-height: 156px !important;
    }

    .book-card-body {
        padding: 16px;
    }

    .book-store-actions,
    .book-store-actions .book-button {
        width: 100%;
    }

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

    .book-gift-steps {
        grid-template-columns: 1fr;
    }

    .book-gift-actions,
    .book-gift-actions .book-button {
        width: 100%;
    }

    .other-books-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
