/* Baleide site styles. Plain CSS, no framework. */
:root {
    --navy: #0f2342;
    --navy-2: #182f55;
    --ink: #1c2b47;
    --muted: #5a6680;
    --copper: #b4632c;
    --copper-2: #d0844c;
    --copper-soft: #e9b48a;
    --ivory: #fcf6f1;
    --cream: #f7eee6;
    --peach: #fbeee3;
    --line: #ead8c6;
    --card: #fffbf7;
    --night: #091b35;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 24px;
    --shadow: 0 18px 40px -24px rgba(83, 49, 22, .35);
    --shadow-sm: 0 8px 22px -16px rgba(83, 49, 22, .4);
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.ic-xs { width: .8em; height: .8em; margin-left: .2em; }
.ic-copper { color: var(--copper-2); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
    font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--copper); display: flex; align-items: center; gap: .5em; flex-wrap: wrap;
}
.eyebrow--sm { font-size: 12px; letter-spacing: .14em; }
.eyebrow--light { color: var(--copper-soft); }
.eyebrow-soft { font-weight: 500; opacity: .85; }
.eyebrow--lined { justify-content: center; }
.eyebrow--lined::before, .eyebrow--lined::after { content: ""; width: 72px; height: 1px; background: var(--copper-soft); }
.section-title, .hero-title, .band-title, .closing-title, .format-title {
    font-family: var(--serif); font-weight: 700; color: var(--navy); line-height: 1.08; letter-spacing: -.015em;
}
.section-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem); margin-top: 10px; text-wrap: balance; }
.section-lead { font-size: clamp(1rem, .95rem + .25vw, 1.15rem); color: var(--muted); margin-top: 14px; max-width: 70ch; }

.section { padding-block: clamp(64px, 8vw, 112px); }
.section--ivory { background: var(--ivory); }
.section--cream { background: var(--cream); }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.center-cta { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 12px 26px; border-radius: 10px; border: 1.5px solid transparent;
    font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: rgba(255, 255, 255, .4); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-cream { background: #fbf3ea; color: var(--navy); border-radius: 14px; }
.btn-cream:hover { background: #fff; }
.btn-outline-light { border-color: rgba(251, 243, 234, .8); color: #fff; border-radius: 14px; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn-soft {
    background: linear-gradient(180deg, #fffaf5, var(--peach)); border-color: #ecd3bd; color: var(--navy);
    border-radius: 999px; padding-inline: 32px; box-shadow: var(--shadow-sm);
}
.btn-soft .ic { color: var(--copper); }
.btn-soft:hover { border-color: var(--copper-soft); box-shadow: var(--shadow); }
.btn-copper { background: linear-gradient(135deg, #f0b083, #c4733a); color: #fff; border-radius: 999px; padding-inline: 32px; box-shadow: 0 10px 30px -12px rgba(220, 130, 70, .8); }
.btn-copper:hover { filter: brightness(1.05); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn-row--center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); padding-bottom: 8px; position: relative; }
.link-arrow::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48%; height: 2px; background: var(--copper-2); transition: width .25s; }
.link-arrow .ic { color: var(--copper); transition: transform .25s; }
.link-arrow:hover::after { width: 100%; }
.link-arrow:hover .ic { transform: translateX(3px); }
.link-arrow--lg { font-size: 1.15rem; flex-shrink: 0; }

.round-btn {
    width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center;
    background: #fffaf6; border: 1px solid var(--line); color: var(--navy); box-shadow: var(--shadow-sm); transition: background .2s, border-color .2s;
}
.round-btn:hover { border-color: var(--copper-soft); background: #fff; }
.round-btn .ic { width: 20px; height: 20px; }

.empty-state { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 48px 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: rgba(255, 255, 255, .5); }
.empty-state .ic { width: 36px; height: 36px; color: var(--copper); }
.empty-state--sm { padding: 32px 20px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 246, 241, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(234, 216, 198, .7); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; line-height: 1; }
.brand img { height: 36px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.main-nav ul a { display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; color: var(--navy); padding: 8px 0; position: relative; }
.main-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--copper); transform: scaleX(0); transition: transform .25s; }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
.nav-mobile-actions { display: none; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--navy); background: none; border: 0; position: relative; }
.icon-btn:hover { background: rgba(15, 35, 66, .06); }
.icon-btn .ic { width: 22px; height: 22px; }
.cart-badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--copper); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.header-cta { margin-left: 6px; }
.nav-toggle { display: none; }
.nav-toggle .ic-close { display: none; }
.nav-overlay { position: fixed; inset: 0; background: rgba(9, 27, 53, .45); z-index: 40; }

@media (max-width: 1023px) {
    .nav-toggle { display: inline-grid; }
    /* The nav becomes an off-canvas panel here, so the icons need their own push to the right edge. */
    .header-actions { margin-left: auto; }
    .main-nav {
        position: fixed; top: 0; right: 0; z-index: 60; height: 100dvh; width: min(86vw, 360px);
        background: var(--ivory); padding: calc(var(--header-h) + 8px) 24px 32px; overflow-y: auto;
        /* Hidden by clipping, not by sliding off-screen: an off-screen fixed panel widens the page on mobile Chrome. */
        clip-path: inset(0 0 0 100%); transition: clip-path .3s ease, visibility .3s; box-shadow: -20px 0 50px -30px rgba(0, 0, 0, .5);
        display: flex; flex-direction: column; gap: 24px; visibility: hidden;
    }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul a { font-size: 1.15rem; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
    .main-nav ul a::after { display: none; }
    .main-nav ul a.is-active { color: var(--copper); }
    .nav-mobile-actions { display: block; }
    body.nav-open .main-nav { clip-path: inset(0 0 0 -60px); visibility: visible; }
    body.nav-open .nav-toggle { position: relative; z-index: 70; }
    body.nav-open .nav-toggle .ic-open { display: none; }
    body.nav-open .nav-toggle .ic-close { display: block; }
}
@media (max-width: 560px) {
    .header-cta { display: none; }
    .brand img { height: 30px; }
    .header-inner { gap: 12px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; max-width: 1680px; margin-inline: auto; background: #fcf6f1; container-type: inline-size; }
.hero-stage { position: relative; }
.hero-media img { width: 100%; height: auto; }
.hero-title { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); margin-top: 14px; }
.hero-text { font-size: 1.05rem; color: #3a4762; margin-top: 18px; max-width: 46ch; }
.hero-slide.is-active { animation: fadeIn .6s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-nav { display: flex; align-items: center; gap: 18px; }
.hero-count { font-size: 1.1rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 72px; }
.hero-count strong { color: var(--navy); font-size: 1.3rem; }
.hero-dots { display: flex; gap: 6px; }
.dot { width: 28px; height: 28px; border: 0; background: none; display: grid; place-items: center; padding: 0; }
.dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #e6d3c2; transition: background .2s, transform .2s; }
.dot.is-active::before { background: var(--navy); transform: scale(1.25); }

.hero-tag, .hero-step { display: flex; align-items: center; gap: 12px; background: rgba(255, 249, 243, .96); border: 1px solid #efd9c6; border-radius: 22px; box-shadow: var(--shadow-sm); }
.hero-tag .ic, .hero-step .ic { color: var(--copper); }
.hero-tag strong, .hero-step strong { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--copper); }
.hero-tag span, .hero-step span { color: var(--navy); line-height: 1.25; }
.trilogy-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: rgba(255, 255, 255, .9); border-radius: 22px; padding: 10px; box-shadow: var(--shadow); }
.part { display: flex; align-items: center; gap: 12px; border-radius: 16px; padding: 12px 14px; color: var(--navy); }
.part .ic { color: var(--copper); }
.part strong { display: block; font-style: italic; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.part--1 { background: #dfe9f7; }
.part--2 { background: #fbe1d6; }
.part--3 { background: #dcefe3; }
.trilogy-caption { text-align: center; color: var(--navy); }
.trilogy-caption strong { display: block; font-style: italic; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.trilogy-caption em { display: block; }

@media (min-width: 1024px) {
    .hero-stage { aspect-ratio: 16 / 9; }
    /* Keep the whole 16:9 hero inside one screen: width follows the available height, overlays stay aligned. */
    .hero { width: min(100%, 1680px, calc((100svh - var(--header-h)) * 16 / 9)); }
    .hero-media img { position: absolute; inset: 0; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(180deg, #000 90%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(180deg, #000 90%, transparent); mask-composite: intersect; }
    .hero-copy { position: absolute; left: 4.2cqw; top: 13%; width: 40cqw; }
    .hero-title { font-size: clamp(2.4rem, 3.75cqw, 4.4rem); }
    .hero-slide--4 .hero-title { font-size: clamp(2.3rem, 3.4cqw, 4rem); }
    .hero-text { font-size: clamp(1rem, 1.2cqw, 1.3rem); margin-top: 1.6cqw; }
    .hero .btn-row { margin-top: 2.6cqw; }
    .hero-slide--2 .hero-copy { width: 37cqw; }
    .hero-slide--3 .hero-copy { width: 36cqw; }
    .hero-nav { position: absolute; left: 4.2cqw; bottom: 3.4cqw; z-index: 5; }

    .hero-tag, .hero-step { position: absolute; padding: .85cqw 1.3cqw; gap: .9cqw; font-size: clamp(12px, 1.1cqw, 18px); border-radius: 1.6cqw; }
    .hero-tag .ic, .hero-step .ic { width: 2.1cqw; height: 2.1cqw; }
    .hero-tag strong, .hero-step strong { font-size: clamp(12px, 1.2cqw, 20px); }
    .hero-tag::after { content: ""; position: absolute; left: 3cqw; top: 100%; width: 1px; height: 2.6cqw; background: var(--copper-soft); }
    .hero-tag--a { left: 51%; top: 13%; }
    .hero-tag--b { left: 78.4%; top: 17.6%; }
    .hero-tag--b::after { left: auto; right: 82%; }
    .hero-step { top: 20.4%; min-height: 11.6%; }
    .hero-step--1 { left: 41%; width: 14.6cqw; }
    .hero-step--2 { left: 58.9%; width: 16.4cqw; top: 19.6%; }
    .hero-step--3 { left: 80.4%; width: 16.4cqw; }
    .hero-trilogy { position: absolute; left: 41.4%; width: 52.4cqw; top: 70.4%; }
    .trilogy-parts { gap: .7cqw; padding: .7cqw; border-radius: 1.6cqw; }
    .part { padding: .9cqw 1cqw; gap: .9cqw; font-size: clamp(12px, 1.12cqw, 18px); border-radius: 1.1cqw; }
    .part .ic { width: 2.3cqw; height: 2.3cqw; }
    .trilogy-caption { margin-top: 1.4cqw; font-size: clamp(12px, 1.15cqw, 19px); }
    .trilogy-caption strong { font-size: clamp(14px, 1.5cqw, 24px); }
}
@media (max-width: 1023px) {
    .hero-stage { display: flex; flex-direction: column; }
    .hero-copy { order: 1; padding: 36px 20px 8px; }
    .hero-media { order: 2; margin-top: 12px; }
    .hero-tags, .hero-steps, .hero-trilogy { order: 3; padding: 0 20px; }
    .hero-tags, .hero-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
    .hero-tag, .hero-step { padding: 12px 14px; font-size: .9rem; }
    .hero-tag strong, .hero-step strong { font-size: .8rem; }
    .trilogy-parts { grid-template-columns: 1fr; }
    .trilogy-caption { margin-top: 14px; }
    .hero-nav { justify-content: center; padding: 22px 20px 34px; }
}

/* ---------- Format cards ---------- */
.format-grid { display: grid; grid-template-columns: 1fr 1.18fr; gap: 24px; }
.format-card {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; overflow: hidden;
    background: linear-gradient(160deg, #fffcf9, #f9eee4); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-sm);
}
.format-copy { padding: clamp(28px, 3vw, 44px); align-self: stretch; display: flex; flex-direction: column; }
.format-copy p:not(.eyebrow) { color: #3a4762; margin-top: 14px; }
.format-copy .link-arrow { margin-top: auto; padding-top: 28px; align-self: flex-start; }
.format-title { font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.6rem); margin-top: 12px; }
.format-card--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.format-media { width: 100%; height: auto; max-height: 360px; object-fit: contain; object-position: right bottom; }
.format-card--wide .format-media { max-height: 330px; }
@media (max-width: 1023px) {
    .format-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .format-card { grid-template-columns: 1fr; }
    .format-media { justify-self: center; max-height: 260px; }
}

/* ---------- Featured books ---------- */
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.book-grid > li { display: flex; }
.book-card { display: flex; flex-direction: column; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book-cover { position: relative; height: 290px; display: grid; place-items: center; background: radial-gradient(circle at 50% 65%, #fbeee2, #fffaf6 70%); }
.book-cover img { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; filter: drop-shadow(0 16px 18px rgba(60, 35, 15, .22)); }
.book-cover > .ic { width: 48px; height: 48px; color: var(--copper-soft); }
.book-body { display: flex; flex-direction: column; flex: 1; padding: 18px 24px 24px; }
.book-title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; color: var(--navy); margin: 8px 0 18px; }
.book-body .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 1023px) { .book-grid { grid-template-columns: repeat(2, 1fr); } .section-head--split { flex-direction: column; align-items: flex-start; } }
@media (max-width: 520px) {
    .book-grid { gap: 14px; }
    .book-cover { height: 210px; }
    .book-cover img { inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
    .book-body { padding: 14px 16px 18px; }
    .book-title { font-size: 1.08rem; }
    .book-body .link-arrow { font-size: .9rem; }
}
@media (max-width: 380px) { .book-grid { grid-template-columns: 1fr; } .book-cover { height: 260px; } }

/* ---------- Dark feature bands (why AI, membership, RayAcademy) ---------- */
.feature-band { color: #e9edf5; background: var(--night); }
.band-stage { position: relative; max-width: 1680px; margin-inline: auto; container-type: inline-size; }
.band-media img { width: 100%; height: auto; }
.band-title { color: #fff; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); margin-top: 12px; }
.band-copy > p:not(.eyebrow) { margin-top: 16px; color: #d6dceb; font-size: 1.05rem; max-width: 52ch; }
.band-copy .btn { margin-top: 26px; }
.band-copy .btn-row .btn { margin-top: 0; }
.feature-band--why { background: #0e203f; }
.feature-band--rayacademy { background: #0c1d33; }
.feature-band--membership { background: #112241; }

.why-features { display: grid; grid-template-columns: repeat(2, 1fr); }
.why-features li { display: flex; gap: 22px; align-items: flex-start; padding: 20px 28px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.why-features li:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .14); }
.why-features li:nth-last-child(-n+2) { border-bottom: 0; }
.why-features .ic { width: 46px; height: 46px; color: var(--copper-2); }
.why-features h3 { font-size: 1.3rem; color: #fff; font-weight: 600; }
.why-features p { color: #c9d1e2; margin-top: 4px; }

.ray-features { display: flex; margin-top: 28px; }
.ray-features li { display: flex; align-items: center; gap: 14px; padding-right: 24px; margin-right: 24px; border-right: 1px solid rgba(255, 255, 255, .25); font-weight: 600; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; max-width: 210px; line-height: 1.3; }
.ray-features li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.ray-features .ic { width: 42px; height: 42px; color: var(--copper-2); }

.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.benefits .ic { width: 40px; height: 40px; color: var(--copper-soft); }
.benefits h3 { font-size: 1.25rem; color: #fff; font-weight: 600; }
.benefits p { color: #d6dceb; margin-top: 4px; font-size: .95rem; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); }
.price { display: grid; gap: 4px; }
.price s { color: #9aa6bf; font-size: 1.3rem; font-weight: 600; }
.price-now { display: inline-block; background: linear-gradient(135deg, #fbe2cd, #f2c49f); color: #8e1f1f; font-family: var(--serif); font-weight: 700; font-size: 2.2rem; line-height: 1; padding: 12px 22px; border-radius: 8px; transform: skewX(-6deg); }
.price-now small { font-family: var(--sans); font-size: 1rem; color: #7a2a1d; margin-left: 2px; }
.feature-band--membership .btn-copper { margin-top: 0; }

@media (min-width: 1024px) {
    .band-media img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
    .feature-band--why .band-stage, .feature-band--rayacademy .band-stage { aspect-ratio: 16 / 9; }
    .feature-band--membership .band-stage { aspect-ratio: 2 / 1; }
    .band-copy { position: absolute; }
    .band-title { font-size: clamp(2.3rem, 3.6cqw, 4.2rem); }
    .band-copy > p:not(.eyebrow) { font-size: clamp(.98rem, 1.15cqw, 1.25rem); margin-top: 1.4cqw; }
    .band-copy .btn { margin-top: 2cqw; }

    .feature-band--why .band-copy { left: 4.6cqw; top: 9%; width: 38cqw; }
    .why-features { position: absolute; left: 4cqw; right: 4cqw; top: 67%; }
    .why-features li { padding: .9cqw 2.4cqw; gap: 2cqw; }
    .why-features .ic { width: 3.2cqw; height: 3.2cqw; }
    .why-features h3 { font-size: clamp(1.05rem, 1.55cqw, 1.7rem); }
    .why-features p { font-size: clamp(.85rem, 1.1cqw, 1.2rem); }

    .feature-band--rayacademy .band-copy { left: 5.5cqw; top: 13%; width: 46cqw; }
    .ray-features { margin-top: 2.4cqw; }
    .ray-features li { font-size: clamp(.74rem, .9cqw, 1rem); gap: .9cqw; padding-right: 1.6cqw; margin-right: 1.6cqw; max-width: none; flex: 0 1 auto; }
    .ray-features .ic { width: 3.2cqw; height: 3.2cqw; }

    .feature-band--membership .band-copy { left: 40.5cqw; right: 3cqw; top: 6%; }
    .feature-band--membership .band-title { font-size: clamp(2.2rem, 3.6cqw, 4rem); }
    .benefits { margin-top: 2cqw; gap: 1.4cqw; }
    .benefits li { padding: 1.3cqw 1.6cqw; }
    .benefits h3 { font-size: clamp(1rem, 1.6cqw, 1.7rem); }
    .benefits p { font-size: clamp(.85rem, 1cqw, 1.1rem); }
    .price-row { margin-top: 1.8cqw; padding-top: 1.6cqw; }
    .price-now { font-size: clamp(1.8rem, 3cqw, 3.2rem); }
}
@media (max-width: 1023px) {
    .band-stage { display: flex; flex-direction: column; }
    .band-copy { order: 1; padding: 56px 20px 8px; }
    .band-media { order: 2; margin-top: 20px; }
    .why-features { order: 3; grid-template-columns: 1fr; padding: 8px 20px 48px; }
    .why-features li, .why-features li:nth-child(odd) { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); padding: 18px 0; }
    .why-features li:last-child { border-bottom: 0; }
    .why-features .ic { width: 34px; height: 34px; }
    .feature-band--membership .band-media { order: 0; }
    .feature-band--membership .band-copy { padding: 28px 20px 56px; }
    .feature-band--rayacademy .band-media { padding-bottom: 8px; }
}
@media (max-width: 640px) {
    .benefits { grid-template-columns: 1fr; }
    .ray-features { flex-direction: column; gap: 16px; }
    .ray-features li { border-right: 0; margin-right: 0; padding-right: 0; max-width: none; }
    .price-row .btn { width: 100%; }
}

/* ---------- Demo ---------- */
.demo { background: linear-gradient(180deg, #fffcf9, #fdf3eb); border: 1px solid var(--line); border-radius: 34px; padding: clamp(16px, 2.4vw, 28px); box-shadow: var(--shadow); }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: rgba(255, 255, 255, .7); border: 1px solid #f1e3d6; border-radius: 22px; padding: 14px 18px; }
.demo-book { display: flex; align-items: center; gap: 16px; min-width: 0; }
.demo-book > div { min-width: 0; }
.demo-book img { width: 64px; height: 77px; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow-sm); }
.demo-book > div { border-left: 2px solid var(--copper-soft); padding-left: 16px; }
.demo-book-title { font-size: 1.45rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.demo-book-sub { color: #3d5a80; font-size: .95rem; overflow-wrap: anywhere; }
.demo-tabs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab, .chip-tab {
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0;
    padding: 12px 20px; min-height: 48px; border-radius: 14px; border: 1px solid #efdccb; background: #fffaf6; color: var(--navy); font-weight: 600;
    box-shadow: var(--shadow-sm); transition: background .2s, color .2s;
}
.demo-tab .ic, .chip-tab .ic { width: 22px; height: 22px; color: var(--copper); }
.demo-tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.demo-tab[aria-selected="true"] .ic { color: #fff; }
.demo-panel { display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(20px, 3vw, 40px) clamp(8px, 2vw, 24px) clamp(8px, 1.5vw, 16px); animation: fadeIn .35s ease both; }
.demo-question { display: flex; align-items: flex-start; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.avatar .ic { width: 26px; height: 26px; color: var(--navy); }
.demo-question p { background: #ecebf6; border-radius: 20px; padding: 18px 22px; font-size: 1.15rem; color: var(--navy); }
.demo-answer { background: #fff; border: 1px solid #f1e3d6; border-radius: 22px; padding: 22px 26px; box-shadow: var(--shadow); }
.demo-answer-head { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; font-size: 1.15rem; }
.demo-answer-head .ic { color: var(--copper); width: 26px; height: 26px; }
.demo-answer-body { margin-top: 10px; color: var(--navy); font-size: 1.1rem; }
.demo-answer-body ul, .demo-answer-body ol { margin-top: 6px; display: grid; gap: 4px; }
.demo-answer-body ul li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--copper-2); margin-right: 10px; vertical-align: middle; }
.demo-answer-body ol { list-style: decimal; padding-left: 22px; }
.demo-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.demo-flow span { padding: 8px 14px; border-radius: 10px; background: var(--peach); font-weight: 600; font-size: .95rem; }
.demo-flow span.is-strong { background: var(--navy); color: #fff; }
.demo-flow .ic { color: var(--copper); }
.demo-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 14px; border-radius: 10px; background: var(--peach); color: var(--navy); font-size: .92rem; }
.demo-note .ic { color: var(--copper); }
@media (max-width: 860px) {
    .demo-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
    .demo-panel { grid-template-columns: 1fr; }
    .demo-question p, .demo-answer-body { font-size: 1rem; }
    .avatar { width: 44px; height: 44px; }
}

/* ---------- Authors ---------- */
.section--authors { background: url("../img/home/ivory.webp") center / cover no-repeat, var(--ivory); }
.carousel { position: relative; }
.carousel-nav { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 18px; }
.carousel-track {
    --visible: 3; --gap: 26px;
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
    gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 4px 18px; margin-inline: -4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-centered { justify-content: center; }
.carousel-item { scroll-snap-align: start; display: flex; }
.author-card { display: flex; flex-direction: column; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-sm); }
.author-photo { aspect-ratio: 4 / 3; background: #f2e2d4; display: grid; place-items: center; overflow: hidden; }
.author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.author-photo > .ic { width: 56px; height: 56px; color: var(--copper-soft); }
.author-body { display: flex; flex-direction: column; flex: 1; padding: 24px 30px 26px; }
.author-name { font-size: 1.35rem; font-weight: 700; color: var(--navy); line-height: 1.25; }
.author-expertise { color: var(--copper); font-weight: 600; margin-top: 6px; }
.author-bio { color: var(--muted); margin-top: 10px; }
.author-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; font-size: 1.05rem; color: var(--navy); }
.author-bio + .author-link, .author-expertise + .author-link { margin-top: 20px; }
.author-link .ic { width: 22px; height: 22px; color: var(--copper); transition: transform .2s; }
.author-link:hover .ic { transform: translate(2px, -2px); }
@media (max-width: 1023px) { .carousel-track { --visible: 2; --gap: 18px; } }
@media (max-width: 640px) { .carousel-track { --visible: 1; grid-auto-columns: 86%; } .carousel-track.is-centered { grid-auto-columns: 100%; } .author-body { padding: 20px 22px 22px; } }

/* ---------- Knowledge ---------- */
.chip-tabs { display: flex; justify-content: center; gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 4px 4px 22px; margin-bottom: 18px; }
.chip-tabs::-webkit-scrollbar { display: none; }
.chip-tab { border-radius: 999px; padding: 14px 30px; font-size: 1.05rem; background: #fffaf6; position: relative; }
.chip-tab[aria-selected="true"] { background: linear-gradient(180deg, #1c3358, var(--navy)); color: #fff; border-color: var(--navy); }
.chip-tab[aria-selected="true"] .ic { color: var(--copper-soft); }
.chip-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -12px; height: 2px; background: var(--copper-2); }
.tab-panel { animation: fadeIn .35s ease both; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-grid > li { display: flex; }
.article-card { display: flex; flex-direction: column; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-thumb { aspect-ratio: 16 / 8; background: var(--peach); display: grid; place-items: center; overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-thumb > .ic { width: 40px; height: 40px; color: var(--copper-soft); }
.article-body { display: flex; flex-direction: column; flex: 1; padding: 20px 28px 24px; }
.article-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.18; color: var(--navy); margin-top: 6px; }
.article-excerpt { color: var(--muted); margin-top: 10px; }
.article-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.article-excerpt + .article-link, .article-title + .article-link { margin-top: 18px; }
.article-link .ic { width: 22px; height: 22px; color: var(--copper); }
@media (max-width: 1023px) {
    .chip-tabs { justify-content: flex-start; margin-inline: -20px; padding-inline: 20px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) { .article-grid { grid-template-columns: 1fr; } .chip-tab { padding: 12px 20px; font-size: .98rem; } }

/* ---------- Collaborate ---------- */
.collab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.collab-card { display: flex; flex-direction: column; }
.collab-card > img { width: 100%; aspect-ratio: 676 / 278; object-fit: cover; border-radius: 28px 28px 0 0; }
.collab-body { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 26px; margin-top: -34px; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 30px 36px 32px; box-shadow: var(--shadow); }
.collab-icon { width: 58px; height: 58px; color: var(--copper); padding-right: 22px; box-sizing: content-box; border-right: 1px solid var(--copper-soft); }
.collab-body h3 { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem); color: var(--navy); line-height: 1.1; }
.collab-body p { color: #3a4762; margin-top: 10px; }
.collab-body .btn { margin-top: 22px; }
@media (max-width: 900px) { .collab-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
    .collab-body { grid-template-columns: 1fr; gap: 14px; padding: 24px 22px; }
    .collab-icon { width: 40px; height: 40px; padding: 0; border: 0; }
    .collab-body .btn { width: 100%; }
}

/* ---------- FAQ ---------- */
.section--faq { background: url("../img/home/faq.webp") left bottom / cover no-repeat, #fcf5ef; }
.faq-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-intro .section-title { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); }
.rule { display: block; width: 72px; height: 2px; background: var(--copper-2); margin: 32px 0; }
.faq-more { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--navy); margin-bottom: 16px; }
.accordion { background: rgba(255, 251, 247, .88); border: 1px solid var(--line); border-radius: 32px; padding: 14px; box-shadow: var(--shadow); backdrop-filter: blur(4px); }
.acc-item { border-bottom: 1px solid var(--line); border-radius: 22px; transition: background .25s, border-color .25s; }
.acc-item:last-child { border-bottom-color: transparent; }
.acc-item.is-open { background: linear-gradient(180deg, #fdf0e6, #fbeadc); border: 1px solid #efd5bf; box-shadow: var(--shadow-sm); }
.acc-trigger { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-align: left; background: none; border: 0; padding: 22px 22px; border-radius: 22px; }
.acc-num { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--copper); min-width: 1.4em; }
.acc-q { font-family: var(--serif); font-weight: 700; font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); color: var(--navy); line-height: 1.3; }
.acc-icon .ic { width: 26px; height: 26px; color: var(--copper); }
.acc-icon .ic-minus, .acc-item.is-open .acc-icon .ic-plus { display: none; }
.acc-item.is-open .acc-icon .ic-minus { display: block; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner p { padding: 0 22px 24px calc(22px + 1.4em + 14px); color: #46526b; }
@media (max-width: 900px) {
    .section--faq { background-size: 900px auto; }
    .faq-grid { grid-template-columns: 1fr; }
    .rule { margin: 24px 0; }
    .accordion { padding: 8px; border-radius: 24px; }
    .acc-trigger { padding: 18px 14px; gap: 10px; }
    .acc-inner p { padding: 0 16px 20px 16px; }
}

/* ---------- Closing + footer ---------- */
.closing { position: relative; background: #0f2343; color: #dfe5f1; text-align: center; container-type: inline-size; max-width: 100%; }
.closing-media img { width: 100%; height: auto; }
.closing-copy { max-width: 980px; }
.closing-copy .eyebrow { justify-content: center; color: var(--copper-soft); }
.closing-title { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.8rem); margin-top: 14px; }
.closing-copy > p:not(.eyebrow) { margin: 18px auto 0; max-width: 64ch; color: #d3daea; font-size: 1.05rem; }
@media (min-width: 1024px) {
    .closing { max-width: none; }
    .closing-copy { position: absolute; left: 50%; top: 3.6cqw; transform: translateX(-50%); }
    .closing-title { font-size: clamp(2.4rem, 3.5cqw, 4.2rem); }
}
@media (max-width: 1023px) {
    .closing { display: flex; flex-direction: column; }
    .closing-copy { order: 1; padding-top: 64px; }
    .closing-media { order: 2; margin-top: 24px; }
    .closing .btn-row .btn { flex: 1 1 220px; }
}

.site-footer { background: var(--night); color: #c5cde0; padding: clamp(32px, 4vw, 48px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
.footer-brand img { width: 160px; height: auto; }
.footer-brand p { margin-top: 18px; font-size: .95rem; max-width: 32ch; }
.footer-col h2 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-soft); margin-bottom: 16px; font-weight: 700; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #dfe5f1; transition: color .2s; display: inline-flex; align-items: center; }
.footer-col a:hover { color: var(--copper-soft); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.footer-contact .ic { margin-top: 3px; color: var(--copper-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .92rem; }
.footer-bottom ul { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--copper-soft); }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Inner pages (articles, authors) ---------- */
.page-hero { padding-block: clamp(48px, 6vw, 80px) clamp(24px, 3vw, 36px); background: var(--ivory); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--copper); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); margin-top: 16px; font-size: .95rem; }
.prose { max-width: 72ch; margin-inline: auto; font-size: 1.1rem; line-height: 1.8; color: #2b3954; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--serif); color: var(--navy); line-height: 1.25; margin-top: 1.8em; }
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.35rem; }
.prose a { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose blockquote { border-left: 3px solid var(--copper-soft); padding-left: 18px; color: var(--muted); font-style: italic; }
.prose img { border-radius: 16px; }
.article-cover { max-width: 960px; margin: 0 auto clamp(28px, 4vw, 48px); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.article-cover img { width: 100%; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--navy); font-weight: 600; }
.pagination .is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .is-disabled { opacity: .45; }
.chip-links { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 4px 16px; }
.chip-links a { flex-shrink: 0; }
.chip-links .chip-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-links .chip-tab.is-active .ic { color: var(--copper-soft); }
.author-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.author-grid > li { display: flex; }
@media (max-width: 1023px) { .author-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .author-grid { grid-template-columns: 1fr; } }
.profile { display: grid; grid-template-columns: 320px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.profile-photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: #f2e2d4; aspect-ratio: 1; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile-photo { max-width: 280px; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Book collection ---------- */
.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; }
.collection-page { background: url("../img/home/collection-bg.webp") right top / min(1025px, 100%) auto no-repeat, var(--ivory); }
.collection-hero { padding-block: clamp(40px, 5vw, 64px) 12px; }
.collection-title { font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); }
.collection-hero .section-lead { max-width: 62ch; color: #33415c; }
.breadcrumb--caps { font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); margin-bottom: 12px; }
.breadcrumb--caps a:hover { color: var(--navy); }
.search-bar { display: flex; align-items: center; gap: 12px; margin-top: 28px; max-width: 920px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 8px 20px; box-shadow: var(--shadow-sm); }
.search-bar:focus-within { border-color: var(--copper-soft); box-shadow: 0 0 0 3px rgba(208, 132, 76, .18); }
.search-bar > .ic { width: 22px; height: 22px; color: var(--navy); }
.search-bar input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.02rem; color: var(--ink); padding: 10px 0; outline: none; }
.search-bar input::placeholder { color: #7a8398; }

.shelf-section { padding-block: clamp(28px, 4vw, 48px); }
.shelf-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 24px; }
.shelf-badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fff3e6, #f7e1cc); color: var(--copper); box-shadow: var(--shadow-sm); flex-shrink: 0; }
.shelf-badge .ic { width: 28px; height: 28px; }
.shelf-heading { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.1; }
.shelf-sub { color: var(--muted); align-self: flex-end; padding-bottom: 4px; }
.shelf-head .link-arrow { margin-left: auto; color: var(--copper); }

.shelf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shelf-grid > li { display: flex; }
.shelf-card { display: grid; grid-template-columns: 120px 1fr; gap: 18px; width: 100%; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.shelf-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.shelf-cover-col { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.shelf-cover { width: 120px; aspect-ratio: 3 / 4.3; display: grid; place-items: center; border-radius: 6px; overflow: hidden; background: #f3e6da; box-shadow: 0 12px 18px -10px rgba(60, 35, 15, .45); }
.shelf-cover img { width: 100%; height: 100%; object-fit: cover; }
.shelf-cover > .ic { width: 36px; height: 36px; color: var(--copper-soft); }
.shelf-detail { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--navy); }
.shelf-detail .ic { width: 14px; height: 14px; }
.shelf-body { display: flex; flex-direction: column; min-width: 0; }
.shelf-title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; color: var(--navy); margin-top: 6px; }
.shelf-title a:hover { color: var(--copper); }
.shelf-author { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.shelf-perk { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .88rem; font-weight: 600; color: var(--navy); }
.shelf-perk .ic { color: var(--copper); }
.shelf-price { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: #b5321f; margin-top: 6px; }
.shelf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.shelf-actions .btn { flex: 1 1 auto; padding-inline: 14px; border-radius: 10px; }
.shelf-actions .btn-copper { box-shadow: none; }
.shelf-actions .btn-soft { box-shadow: none; }

.fields-title { display: flex; align-items: center; gap: 24px; justify-content: center; text-align: center; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 28px; }
.fields-title::before, .fields-title::after { content: ""; flex: 0 1 120px; height: 1px; background: var(--copper-soft); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 240px)); justify-content: center; gap: 18px; }
@media (max-width: 520px) { .field-grid { grid-template-columns: repeat(2, 1fr); } }
.field-grid > li { display: flex; }
.field-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; width: 100%; padding: 26px 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.field-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.field-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fff3e6, #f5dcc4); color: var(--copper); }
.field-icon .ic { width: 34px; height: 34px; }
.field-card h3, .field-card h4 { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); }
.field-card p { color: var(--muted); font-size: .95rem; }
.field-card .link-arrow { margin-top: auto; padding-top: 10px; color: var(--copper); }

.list-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.list-toolbar .chip-links { flex: 1; min-width: 0; }
.chip-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(15, 35, 66, .08); font-size: .78rem; }
.chip-tab.is-active .chip-count { background: rgba(255, 255, 255, .2); }
.sort-form { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sort-form label { font-weight: 600; color: var(--navy); }
.sort-form select { font: inherit; color: var(--navy); padding: 10px 36px 10px 14px; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fffaf6; }
.list-count { color: var(--muted); margin: 6px 0 20px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; z-index: 80; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) { .shelf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
    .shelf-grid { grid-template-columns: 1fr; }
    .shelf-head .link-arrow { margin-left: 0; }
    .shelf-sub { flex-basis: 100%; }
    .list-toolbar { flex-direction: column; align-items: stretch; }
    .sort-form select { flex: 1; }
    .search-bar { padding-left: 14px; }
}
@media (max-width: 400px) {
    .shelf-card { grid-template-columns: 96px 1fr; gap: 14px; padding: 16px; }
    .shelf-cover { width: 96px; }
}

/* ---------- Book detail ---------- */
.breadcrumb--light { color: #b9c3d8; }
.breadcrumb--light a:hover { color: var(--copper-soft); }
.breadcrumb--light li + li::before { color: rgba(255, 255, 255, .3); }
.book-hero { position: relative; overflow: hidden; color: #e6ebf5; padding-block: clamp(28px, 4vw, 44px) clamp(56px, 7vw, 88px);
    background: radial-gradient(ellipse at 70% 30%, rgba(214, 140, 90, .28), transparent 55%), radial-gradient(ellipse at 15% 90%, rgba(120, 140, 210, .22), transparent 50%), linear-gradient(160deg, #142a50, #0b1a33); }
.book-hero-grid { display: grid; grid-template-columns: minmax(260px, .85fr) 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 18px; }
.book-showcase { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.book-stage { position: relative; display: grid; justify-items: center; padding-bottom: 34px; width: 100%; }
.book-cover-lg { position: relative; z-index: 1; width: min(320px, 72vw); aspect-ratio: 3 / 4.3; object-fit: cover; border-radius: 4px 10px 10px 4px; box-shadow: -10px 0 0 -4px rgba(0, 0, 0, .25), 0 30px 50px -20px rgba(0, 0, 0, .75); transform: perspective(1200px) rotateY(-8deg); }
.book-cover-fallback { display: grid; place-items: center; gap: 12px; text-align: center; padding: 24px; background: linear-gradient(160deg, #8a3b2a, #5b2016); color: #fbe9dc; font-family: var(--serif); font-size: 1.4rem; }
.book-cover-fallback .ic { width: 48px; height: 48px; }
.book-pedestal { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(420px, 90%); height: 70px; border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, #f6e7d9, #cdb19a 70%); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .7), inset 0 -8px 16px rgba(120, 80, 50, .35); }
.book-quick { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.quick-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; background: rgba(255, 250, 245, .95); color: var(--navy); font-weight: 700; line-height: 1.2; font-size: .95rem; box-shadow: var(--shadow-sm); transition: transform .2s; }
.quick-btn:hover { transform: translateY(-2px); }
.quick-btn .ic { width: 28px; height: 28px; color: var(--copper); }
.book-chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, #f3b989, #d78850); color: #4a1d0b; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.book-chip--soft { background: var(--peach); color: var(--copper); text-transform: none; letter-spacing: 0; margin-top: 8px; }
.detail-title { font-family: var(--serif); font-weight: 700; color: #fff; font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem); line-height: 1.05; margin-top: 14px; text-wrap: balance; }
.book-subtitle { font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); color: #e8d9cc; margin-top: 10px; }
.book-byline { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; color: #fff; }
.book-byline .ic { color: var(--copper-soft); }
.book-byline a { border-bottom: 1px solid rgba(255, 255, 255, .35); }
.book-byline a:hover { color: var(--copper-soft); }
.book-lead { margin-top: 14px; color: #cfd6e6; max-width: 62ch; }
.buy-card { margin-top: 24px; max-width: 520px; background: linear-gradient(180deg, #fffaf5, #fbefe4); color: var(--ink); border-radius: 22px; padding: 22px 24px 24px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.buy-head { display: flex; gap: 14px; align-items: center; }
.buy-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--peach); color: var(--copper); }
.buy-icon .ic { width: 28px; height: 28px; }
.buy-head h2 { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); line-height: 1.2; }
.buy-head p { color: var(--muted); font-size: .92rem; }
.buy-price { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); color: #b5321f; margin-top: 12px; line-height: 1.1; }
.check-list { display: grid; gap: 8px; margin-top: 14px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 16px; height: 9px; border-left: 2.5px solid #2f8a57; border-bottom: 2.5px solid #2f8a57; transform: rotate(-45deg); }
.buy-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 20px; }
.buy-card .btn-outline-light { color: var(--navy); border-color: #e2c9b3; background: #fff; border-radius: 999px; }
.buy-card .btn-outline-light:hover { border-color: var(--copper-soft); }
.buy-card > .btn-block { margin-top: 18px; }
.owned-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: #2f6f4a; }

.book-facts { margin-top: -32px; position: relative; z-index: 2; }
.facts-card { display: flex; align-items: center; gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px 26px; box-shadow: var(--shadow); }
.facts-label { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--navy); flex-shrink: 0; padding-right: 24px; border-right: 1px solid var(--line); }
.facts-label .ic { width: 30px; height: 30px; color: var(--copper); }
.facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 22px; flex: 1; margin: 0; }
.facts-list dt { font-weight: 700; color: var(--navy); font-size: .9rem; }
.facts-list dd { margin: 2px 0 0; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }

.book-section { padding-block: clamp(44px, 6vw, 80px); }
.book-section--tint { background: linear-gradient(180deg, var(--cream), var(--ivory)); }
.block-title { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); line-height: 1.2; margin-bottom: 20px; }
.block-title .ic { width: 1.1em; height: 1.1em; color: var(--copper); }
.block-title--sm { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.about-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.about-grid--single { grid-template-columns: minmax(0, 820px); }
.book-description { font-size: 1.08rem; line-height: 1.85; color: #2e3b56; max-width: 70ch; overflow-wrap: anywhere; }
.soft-card { background: linear-gradient(180deg, #fffbf8, #fcf0e7); border: 1px solid var(--line); border-radius: 24px; padding: 26px 28px; box-shadow: var(--shadow-sm); }
.check-list--dark li { color: var(--ink); font-size: 1.02rem; }

.learn-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 3vw, 40px); align-items: start; }
.learn-grid--single { grid-template-columns: 1fr; }
.learn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.learn-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; }
.learn-num { align-self: flex-start; padding: 3px 10px; border-radius: 8px; background: var(--peach); color: var(--copper); font-weight: 800; font-size: .9rem; }
.learn-icon { width: 34px; height: 34px; color: var(--copper); }
.learn-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy); line-height: 1.25; }
.learn-card p { font-size: .93rem; color: var(--muted); }
.toc-list { display: grid; gap: 2px; }
.toc-list li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(234, 216, 198, .7); color: var(--ink); }
.toc-list li span { font-weight: 700; color: var(--copper); }
.toc-more summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 18px; border-radius: 999px; background: var(--peach); color: var(--copper); font-weight: 700; cursor: pointer; }
.toc-more summary::-webkit-details-marker { display: none; }
.toc-more summary .ic { transition: transform .2s; }
.toc-more[open] summary .ic { transform: rotate(90deg); }

.series-row { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.series-item { display: grid; gap: 6px; width: 140px; text-align: center; }
.series-cover { display: grid; place-items: center; height: 190px; border-radius: 8px; overflow: hidden; background: #f3e6da; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.series-cover img { width: 100%; height: 100%; object-fit: cover; }
.series-item.is-current .series-cover { outline: 3px solid var(--copper); outline-offset: 2px; }
.series-name { font-weight: 700; color: var(--navy); font-size: .92rem; line-height: 1.25; }
.series-meta { font-size: .82rem; color: var(--copper); font-weight: 600; }

.exp-band { display: grid; grid-template-columns: minmax(0, .8fr) 1.5fr; gap: clamp(20px, 3vw, 40px); align-items: center; border-radius: 30px; padding: clamp(20px, 3vw, 36px); background: linear-gradient(120deg, #f2e6fb, #fdf3ec 55%, #fbe7da); border: 1px solid #eadcf3; box-shadow: var(--shadow); }
.exp-media { width: 100%; max-width: 380px; justify-self: center; }
.exp-copy > p { color: #3a4762; font-size: 1.05rem; }
.exp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 20px 0 22px; }
.exp-features li { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .8); border: 1px solid #efdfd2; border-radius: 16px; padding: 12px 14px; color: var(--muted); font-size: .95rem; line-height: 1.3; }
.exp-features strong { display: block; color: var(--navy); }
.exp-features .ic { width: 30px; height: 30px; color: var(--copper); }

.writer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.writer-card { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 20px; box-shadow: var(--shadow-sm); }
.writer-card img { width: 180px; aspect-ratio: 1; object-fit: cover; object-position: center top; border-radius: 20px; }
.writer-card h3 { font-family: var(--serif); font-size: 1.45rem; color: var(--navy); }
.writer-card p:not(.book-chip) { color: var(--muted); margin-top: 10px; }
.writer-card .link-arrow { margin-top: 14px; color: var(--copper); }

.faq-related { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.accordion--compact { padding: 8px; border-radius: 24px; }
.accordion--compact .acc-trigger { grid-template-columns: 1fr auto; padding: 18px; }
.accordion--compact .acc-q { font-family: var(--sans); font-size: 1.02rem; }
.accordion--compact .acc-inner p { padding: 0 18px 20px; }
.related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.related-head .link-arrow { color: var(--copper); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-grid > li { display: flex; }
.related-card { display: flex; flex-direction: column; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-sm); transition: transform .2s; }
.related-card:hover { transform: translateY(-3px); }
.related-cover { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: #f3e6da; }
.related-cover img { width: 100%; height: 100%; object-fit: cover; }
.related-title { font-weight: 700; color: var(--navy); line-height: 1.25; margin-top: 10px; font-size: .95rem; }
.related-price { margin-top: auto; padding-top: 8px; font-family: var(--serif); font-weight: 700; color: #b5321f; }

.discuss { max-width: 820px; }
.discuss-lead { color: var(--muted); margin: -8px 0 18px; }
.discuss-form { display: grid; gap: 10px; justify-items: end; }
.discuss-form textarea { width: 100%; font: inherit; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; resize: vertical; }
.discuss-form textarea:focus { outline: none; border-color: var(--copper-soft); box-shadow: 0 0 0 3px rgba(208, 132, 76, .18); }
.field-error { color: #b5321f; justify-self: start; font-size: .92rem; }
.flash { background: #e7f5ec; color: #2f6f4a; padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; font-weight: 600; }
.discuss-list { display: grid; gap: 12px; margin-top: 20px; }
.discuss-item { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.discuss-meta { font-size: .88rem; color: var(--muted); margin-bottom: 4px; }
.discuss-reply { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--copper-soft); background: var(--peach); border-radius: 0 12px 12px 0; }
.discuss-empty { color: var(--muted); }

@media (max-width: 1023px) {
    .book-hero-grid, .about-grid, .learn-grid, .faq-related { grid-template-columns: 1fr; }
    .facts-card { flex-direction: column; align-items: stretch; gap: 14px; }
    .facts-label { border-right: 0; padding-right: 0; }
    .exp-band { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .book-cover-lg { width: min(240px, 66vw); transform: none; }
    .buy-actions { grid-template-columns: 1fr; }
    .buy-card { padding: 20px 18px; }
    .writer-list { grid-template-columns: 1fr; }
    .writer-card { grid-template-columns: 1fr; }
    .writer-card img { width: 100%; aspect-ratio: 4 / 3; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .facts-list { grid-template-columns: repeat(2, 1fr); }
}
.book-description p + p { margin-top: 1em; }

/* ---------- Cart, checkout, success ---------- */
.shop-section { padding-top: 8px; }
.shop-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.shop-loading, .shop-error { color: var(--muted); padding: 24px 0; }
.shop-error { color: #b5321f; }
.cart-list { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.cart-item img { width: 72px; height: 100px; object-fit: cover; border-radius: 6px; background: #f3e6da; }
.cart-item--lg { grid-template-columns: 96px 1fr; padding: 18px; }
.cart-item--lg img, .cart-cover-fallback { width: 96px; height: 134px; }
.cart-cover-fallback { display: grid; place-items: center; border-radius: 6px; background: #f3e6da; color: var(--copper-soft); }
.cart-item-body { min-width: 0; }
.cart-item-title { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--navy); line-height: 1.25; margin-top: 4px; }
.cart-item-title:hover { color: var(--copper); }
.cart-item-meta { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.cart-item-price { font-family: var(--serif); font-weight: 700; color: #b5321f; font-size: 1.2rem; margin-top: 6px; }
.cart-remove { color: var(--muted); }
.cart-remove:hover { color: #b5321f; background: #fbeae6; }
.cart-continue { margin-top: 22px; color: var(--copper); }
.shop-perks { margin-top: 20px; }

.summary-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.voucher-form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.voucher-row { display: flex; gap: 8px; }
.voucher-row input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-transform: uppercase; }
.voucher-row input:focus { outline: none; border-color: var(--copper-soft); box-shadow: 0 0 0 3px rgba(208, 132, 76, .18); }
.voucher-row input:disabled { background: var(--peach); color: var(--navy); font-weight: 700; }
.voucher-msg { margin-top: 8px; font-size: .92rem; color: #b5321f; }
.voucher-msg.is-ok { color: #2f6f4a; }
.summary-lines { display: grid; gap: 10px; margin: 20px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.summary-lines > div { display: flex; justify-content: space-between; gap: 16px; }
.summary-lines dt { color: var(--muted); }
.summary-lines dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }
.summary-lines .is-discount dd, .summary-lines .is-discount dt { color: #2f6f4a; }
.summary-lines .is-total { padding-top: 12px; border-top: 1px dashed var(--line); }
.summary-lines .is-total dt { font-weight: 700; color: var(--navy); }
.summary-lines .is-total dd { font-family: var(--serif); font-size: 1.6rem; color: #b5321f; }
.summary-note { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.summary-note a { color: var(--copper); font-weight: 600; }
.summary-card .btn-copper { box-shadow: none; }

.success-wrap { display: grid; place-items: center; }
.success-card { width: min(680px, 100%); text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.success-card .section-lead { margin-inline: auto; }
.success-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #e7f5ec; color: #2f6f4a; margin-bottom: 8px; }
.success-icon.is-pending { background: var(--peach); color: var(--copper); }
.success-icon .ic { width: 34px; height: 34px; }
.success-lines { text-align: left; margin: 26px 0; }

/* ---------- Contact ---------- */
.contact-hero { background: url("../img/home/collection-bg.webp") right top / min(1025px, 100%) auto no-repeat, var(--ivory); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-cards li { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.contact-cards .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--peach); color: var(--copper); box-sizing: border-box; }
.contact-cards p { font-size: .85rem; color: var(--muted); }
.contact-cards a, .contact-cards span { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.contact-cards a:hover { color: var(--copper); }
.contact-topics { margin-top: 24px; }
.contact-form-card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper-soft); box-shadow: 0 0 0 3px rgba(208, 132, 76, .18); }
.field textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash--error { background: #fbeae6; color: #9b2c1c; }

@media (max-width: 900px) {
    .shop-grid, .contact-grid { grid-template-columns: 1fr; }
    .summary-card { position: static; }
}
@media (max-width: 560px) {
    .field-row { grid-template-columns: 1fr; }
    .contact-form .btn { justify-self: stretch; }
    .cart-item { grid-template-columns: 60px 1fr auto; gap: 12px; }
    .cart-item img { width: 60px; height: 84px; }
}

/* ---------- Promo landing ---------- */
.promo-hero { text-align: center; color: #e6ebf5; padding-block: clamp(48px, 7vw, 96px); background: radial-gradient(ellipse at 70% 20%, rgba(214, 140, 90, .3), transparent 55%), linear-gradient(160deg, #142a50, #0b1a33); }
.promo-hero .book-chip { display: inline-flex; align-items: center; gap: 8px; }
.promo-lead { max-width: 64ch; margin: 18px auto 0; color: #d3daea; font-size: 1.1rem; }
.promo-lead strong { color: var(--copper-soft); }
.promo-code { display: inline-grid; gap: 4px; margin-top: 28px; padding: 16px 32px; border: 2px dashed var(--copper-soft); border-radius: 18px; background: rgba(255, 255, 255, .06); }
.promo-code span { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #c9d1e2; }
.promo-code strong { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); letter-spacing: .12em; color: #fff; }
.promo-desc { color: var(--muted); font-size: .93rem; margin-top: 8px; }
.promo-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 10px; }
.promo-price s { color: var(--muted); }
.promo-price .shelf-price { margin-top: 0; }
.promo-badge { padding: 2px 8px; border-radius: 8px; background: #fbeae6; color: #b5321f; font-weight: 700; font-size: .85rem; }
.promo-steps { margin-top: clamp(40px, 6vw, 72px); }
.promo-steps ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.promo-steps li { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); }
.promo-steps li span { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f0b083, #c4733a); color: #fff; font-weight: 800; }
.voucher-row input::placeholder { text-transform: none; }

/* ---------- Contact map ---------- */
.map-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(20px, 3vw, 40px); align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(18px, 2.5vw, 28px); box-shadow: var(--shadow); }
.map-address { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.map-hint { color: var(--muted); margin-top: 8px; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.map-actions .btn-copper { box-shadow: none; }
.map-frame { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: #e9e4dc; border: 1px solid var(--line); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 14px; }
.map-overlay span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(15, 35, 66, .88); color: #fff; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); transition: background .2s; }
.map-overlay:hover span, .map-overlay:focus-visible span { background: var(--copper); }
.footer-contact a:hover { color: var(--copper-soft); }
@media (max-width: 900px) { .map-card { grid-template-columns: 1fr; } .map-actions .btn { flex: 1 1 auto; } }
@media (min-width: 1700px) {
    /* Bands stop at 1680px; fade the image sides into the band colour on wider screens. */
    .band-media img, .closing-media img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
}

/* ---------- Subcategories ---------- */
.chip-stack { flex: 1; min-width: 0; display: grid; gap: 4px; }
.chip-links--sub { padding-top: 0; }
.chip-tab--sm { padding: 8px 16px; min-height: 40px; font-size: .92rem; box-shadow: none; }

/* ---------- Category page ---------- */
/* Hero photo is 1672x941; pedestal centre sits at 76% across, its top surface 36.2% up from the bottom. */
/* Hero photo is 1672x941; pedestal centre sits at 76% across, its top surface 36.2% up from the bottom.
   The photo box follows the hero height (trimmed floor at the bottom), so the book can stay large next to big headings. */
.cat-hero { position: relative; overflow: hidden; isolation: isolate; color: #e6ebf5;
    background: linear-gradient(180deg, #0a2150 0%, #1c2b5c 62%, #5a5079 80%, #8a7590 100%);
    min-height: clamp(560px, 44vw, 800px); display: flex; align-items: center; }
.cat-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(8, 26, 64, .92) 0%, rgba(8, 26, 64, .7) 38%, rgba(8, 26, 64, 0) 58%); }
.cat-hero-bg { position: absolute; right: 0; bottom: -12%; height: 112%; aspect-ratio: 1672 / 941;
    background: url("../img/category/hero-bg.webp") center / 100% 100% no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%); mask-image: linear-gradient(90deg, transparent, #000 12%); }
.cat-hero > .container { position: relative; z-index: 3; }
.cat-hero-copy { max-width: 600px; padding-block: clamp(32px, 4vw, 56px); }
.cat-hero .breadcrumb { margin-bottom: 22px; }
.cat-title { font-family: var(--serif); font-weight: 700; color: #fbefe4; font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem); line-height: 1.05; margin-top: 10px; text-wrap: balance; }
.cat-lead { margin-top: 16px; max-width: 52ch; color: #d3daea; font-size: 1.05rem; }
.cat-search { margin-top: 28px; max-width: 520px; }
.cat-hero-book { position: absolute; z-index: 2; left: 76%; bottom: 36.2%; width: 20%; transform: translateX(-50%); }
/* Flat cover, natural ratio (never cropped), with a soft contact shadow on the pedestal. */
.cat-hero-book img { width: 100%; height: auto; border-radius: 3px 8px 8px 3px; box-shadow: -8px 0 0 -3px rgba(0, 0, 0, .22), 0 26px 40px -20px rgba(10, 15, 35, .7); }
.cat-hero-book::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -4%; width: 125%; height: 9%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(40, 25, 30, .5), rgba(40, 25, 30, 0) 70%); }

/* ---------- 3D book (detail page) ---------- */
/* Container units keep spine and page thickness at 7% of the book width at every size. */
.book3d { container-type: inline-size; position: relative; perspective: 1600px; width: 100%; }
.book3d-inner { position: relative; transform-style: preserve-3d; transform: rotateX(3deg) rotateY(-22deg); }
.book3d.is-swaying .book3d-inner { animation: book-sway 6s ease-in-out infinite alternate; }
@keyframes book-sway { from { transform: rotateX(3deg) rotateY(-30deg); } to { transform: rotateX(2deg) rotateY(-12deg); } }
.book3d-front { display: block; width: 100%; height: auto; border-radius: 2px 6px 6px 2px; transform: translateZ(3.5cqw); backface-visibility: hidden; }
.book3d-spine, .book3d-pages, .book3d-back { position: absolute; top: 0; bottom: 0; }
.book3d-spine { left: 0; width: 7cqw; transform: translateX(-50%) rotateY(-90deg); background: var(--cover) left center / auto 100% no-repeat, #1b2440; filter: brightness(.75); }
.book3d-pages { right: 0; top: 1.2%; bottom: 1.2%; width: 7cqw; transform: translateX(50%) rotateY(90deg); background: repeating-linear-gradient(90deg, #fbf6ee 0 2px, #e4d6c3 2px 3px); }
.book3d::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -4%; width: 120%; height: 10%; transform: translateX(-50%); border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(30, 20, 30, .5), rgba(30, 20, 30, 0) 70%); }
.book3d[data-book-spin] { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.book3d[data-book-spin]:active { cursor: grabbing; }
.book-stage .book3d { width: min(300px, 70vw); z-index: 1; }
.book3d-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: -14px; font-size: .85rem; color: #b9c3d8; }
.book3d-hint .ic { width: 16px; height: 16px; color: var(--copper-soft); }
@media (max-width: 560px) { .book-stage .book3d { width: min(230px, 62vw); } }
@media (prefers-reduced-motion: reduce) { .book3d.is-swaying .book3d-inner { animation: none; } }

.cat-page { background: linear-gradient(180deg, #fbf1ec, var(--ivory) 40%); }
.cat-section { padding-block: clamp(26px, 3.5vw, 44px); }
.cat-section + .cat-section { padding-top: 0; }
.cat-heading { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; margin-bottom: 22px; }
.cat-heading .ic { width: 30px; height: 30px; color: var(--copper); }
.cat-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 22px; }
.cat-section-head .cat-heading { margin-bottom: 0; }
.cat-section-head .link-arrow { color: var(--copper); }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.topic-grid > li { display: flex; }
.topic-card { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 20px; background: linear-gradient(160deg, #fffaf6, #f8ebe1); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--copper-soft); }
.topic-card.is-active { border-color: var(--copper); box-shadow: 0 0 0 2px rgba(180, 99, 44, .15), var(--shadow-sm); }
.topic-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fff3e6, #f5dcc4); color: var(--copper); }
.topic-icon .ic { width: 26px; height: 26px; }
.topic-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.2; color: var(--navy); }
.topic-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; color: var(--muted); font-size: .9rem; }
.topic-meta .ic { color: var(--copper); transition: transform .25s; }
.topic-card:hover .topic-meta .ic { transform: translateX(3px); }

.pick-card { padding: clamp(22px, 3vw, 36px); border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow);
    background: radial-gradient(ellipse at 95% 10%, rgba(255, 255, 255, .9), transparent 45%), linear-gradient(135deg, #f8e6e0, #fbf3ec 55%, #f6e8df); }
.pick-grid { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; }
.pick-cover { display: grid; place-items: center; aspect-ratio: 3 / 4.3; border-radius: 4px 10px 10px 4px; overflow: hidden; background: #f3e6da; box-shadow: -8px 0 0 -3px rgba(0, 0, 0, .18), 0 26px 40px -20px rgba(60, 35, 15, .6); }
.pick-cover img { width: 100%; height: 100%; object-fit: cover; }
.pick-cover > .ic { width: 48px; height: 48px; color: var(--copper-soft); }
.pick-body { display: flex; flex-direction: column; min-width: 0; }
.pick-title { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.1; text-wrap: balance; }
.pick-title a:hover { color: var(--copper); }
.pick-subtitle { margin-top: 8px; color: #33415c; font-size: 1.15rem; }
.pick-author { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; color: var(--navy); }
.pick-author .ic { color: var(--copper); }
.pick-desc { margin-top: 12px; color: var(--muted); max-width: 62ch; }
.pick-offer { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 22px; padding: 18px 20px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 18px; }
.pick-offer-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--peach); color: var(--copper); flex-shrink: 0; }
.pick-offer-icon .ic { width: 26px; height: 26px; }
.pick-format { font-weight: 700; color: var(--navy); }
.pick-price { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; line-height: 1.2; color: #b5321f; }
.pick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.pick-actions .btn { border-radius: 10px; }
.pick-actions .btn-copper { box-shadow: none; }
.pick-more { align-self: flex-start; margin-top: 18px; color: var(--copper); }

.release-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.release-grid > li { display: flex; }
.release-card { display: flex; flex-direction: column; width: 100%; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.release-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.release-cover { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #f8ece2, #f1dfd1); padding: 14px 18px 0; }
.release-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 3px 6px 0 0; box-shadow: 0 14px 22px -12px rgba(60, 35, 15, .55); }
.release-cover > .ic { width: 36px; height: 36px; color: var(--copper-soft); }
.release-title { margin-top: 14px; font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; color: var(--navy); }
.release-title a:hover { color: var(--copper); }
.release-sub { margin-top: 6px; color: var(--muted); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.release-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; }
.release-price { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: #b5321f; }
.release-cart { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--copper); transition: background .2s, color .2s; }
.release-cart:hover { background: var(--copper); color: #fff; }
.release-cart .ic { width: 20px; height: 20px; }

@media (max-width: 1100px) { .release-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
    /* Stacked: text on top, pedestal below. --bw is the backdrop width; right-anchored so the photo always reaches the edge,
       and pushed down a little to trim empty floor. */
    .cat-hero { --bw: 130vw; min-height: 0; display: block; padding-bottom: calc(var(--bw) * .45); }
    .cat-hero::before { background: linear-gradient(180deg, rgba(8, 26, 64, .95) 0%, rgba(8, 26, 64, .8) 45%, rgba(8, 26, 64, 0) 68%); }
    .cat-hero-bg { width: var(--bw); height: auto; bottom: calc(var(--bw) * -.06);
        -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%); mask-image: linear-gradient(180deg, transparent, #000 14%); }
    .cat-hero-copy { padding-bottom: 12px; }
    .pick-grid { grid-template-columns: 1fr; }
    .pick-cover { width: min(240px, 70%); justify-self: center; }
    .pick-actions { margin-left: 0; width: 100%; }
    .pick-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 640px) {
    .cat-hero { --bw: 220vw; }
    /* Topics scroll sideways instead of stacking into a long column. */
    .topic-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 4px 20px 12px; scrollbar-width: none; }
    .topic-grid::-webkit-scrollbar { display: none; }
    .topic-grid > li { flex: 0 0 72%; scroll-snap-align: start; }
    .pick-offer-icon { display: none; }
    .release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .release-card { padding: 12px; }
    .release-cover { padding: 10px 12px 0; }
}

/* Back cover: synopsis over a darkened copy of the front cover. Sizes in cqw follow the book width. */
.book3d-back { left: 0; right: 0; transform: rotateY(180deg) translateZ(3.5cqw); backface-visibility: hidden; border-radius: 6px 2px 2px 6px; overflow: hidden;
    display: flex; flex-direction: column; gap: 4cqw; padding: 10cqw 9cqw 8cqw; color: #f3e9df; text-align: left;
    background: linear-gradient(180deg, rgba(9, 22, 50, .9), rgba(9, 22, 50, .96)), var(--cover) center / cover no-repeat, #0b1a33; }
.book3d-back-kicker { font-size: 3.6cqw; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--copper-soft); }
.book3d-back-text { font-family: var(--serif); font-size: 4.6cqw; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 11; -webkit-box-orient: vertical; overflow: hidden; }
.book3d-back-foot { margin-top: auto; padding-top: 4cqw; border-top: 1px solid rgba(233, 180, 138, .35); }
.book3d-back-title { font-family: var(--serif); font-weight: 700; font-size: 4.4cqw; line-height: 1.25; color: #fff; }
.book3d-back-author { font-size: 3.6cqw; color: #c3cbdc; margin-top: 1cqw; }
.book3d-back-brand { font-family: var(--serif); font-weight: 700; letter-spacing: .18em; font-size: 3.8cqw; color: var(--copper-soft); margin-top: 4cqw; }

/* Tentang Buku */
.about-card { position: relative; padding: clamp(24px, 3.4vw, 40px); border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    background: radial-gradient(ellipse at 100% 0%, rgba(233, 180, 138, .18), transparent 50%), linear-gradient(180deg, #fffbf8, #fcf2ea); }
.about-body { color: #2e3b56; font-size: 1.06rem; line-height: 1.85; max-width: 70ch; overflow-wrap: anywhere; }
.about-body > * + * { margin-top: 1.1em; }
.about-lead { position: relative; padding-left: 26px; border-left: 3px solid var(--copper-soft); font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.6; color: var(--navy); }
.about-sub { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); }
.about-sub::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: var(--copper-soft); }
.about-body > .about-sub + * { margin-top: .7em; }
.about-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.about-meta > div { padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); line-height: 1.35; }
.about-meta dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.about-meta dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }
.about-card.is-collapsed .about-body { max-height: 26em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.about-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--copper-soft); background: #fff; color: var(--copper); font-weight: 700; }
.about-toggle:hover { background: var(--copper); color: #fff; }
.about-toggle .ic { transition: transform .25s; transform: rotate(90deg); }
.about-toggle[aria-expanded="true"] .ic { transform: rotate(-90deg); }
.about-grid--single { grid-template-columns: minmax(0, 940px); }
@media (max-width: 560px) { .about-lead { padding-left: 16px; font-size: 1.1rem; } }

/* ---------- Main category page (Fiksi / Non Fiksi) ---------- */
.main-hero { position: relative; overflow: hidden; color: #e6ebf5; display: flex; align-items: center; min-height: clamp(440px, 36vw, 640px);
    background: linear-gradient(90deg, rgba(8, 26, 64, .9) 0%, rgba(8, 26, 64, .55) 38%, rgba(8, 26, 64, 0) 55%), url("../img/category/main-hero.webp") 70% center / cover no-repeat, #0e2257; }
.main-hero > .container { position: relative; }
.main-hero-copy { max-width: 600px; padding-block: clamp(32px, 4vw, 56px); }
.main-hero .breadcrumb { margin-bottom: 22px; }

.pick5-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.pick5-grid > li { display: flex; }
.pick5-card { display: flex; flex-direction: column; width: 100%; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.pick5-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pick5-cover { display: grid; place-items: center; aspect-ratio: 4 / 4.4; padding: 14px 22px 0; border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 50% 100%, #f3d9c6, #fbf0e7 70%); }
.pick5-cover img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 12px 14px rgba(60, 35, 15, .35)); }
.pick5-cover > .ic { width: 36px; height: 36px; color: var(--copper-soft); }
.pick5-topic { margin-top: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.pick5-title { margin-top: 4px; font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; color: var(--navy); }
.pick5-title a:hover { color: var(--copper); }
.pick5-author { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.pick5-author .ic { margin-top: .2em; color: var(--copper); }
.pick5-price { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pick5-format { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--navy); }
.pick5-format .ic { color: var(--copper); }
.pick5-price strong { font-family: var(--serif); font-size: 1.3rem; color: #b5321f; }
.pick5-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; }
.pick5-actions .btn { width: 100%; border-radius: 10px; box-shadow: none; padding-inline: 10px; }

.topic-rows { display: grid; gap: 14px; }
.topic-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); align-items: stretch; background: linear-gradient(120deg, #fffaf6, #fbefe6); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.topic-row-head { display: flex; gap: 16px; padding: 22px; border-right: 1px solid var(--line); transition: background .25s; }
.topic-row-head:hover { background: rgba(255, 255, 255, .7); }
.topic-row-head > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.topic-row-head .topic-icon { flex-shrink: 0; }
.topic-row-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--navy); }
.topic-row-desc { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.topic-row-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; font-size: .88rem; color: var(--copper); }
.topic-row-head:hover .topic-row-link .ic { transform: translateX(3px); }
.topic-row-link .ic { transition: transform .25s; }
.topic-row-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; align-items: center; }
.topic-row-empty { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; padding: 8px 10px; }
.mini-book { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 14px; }
.mini-book-cover { display: grid; place-items: center; aspect-ratio: 3 / 4.3; border-radius: 3px 6px 6px 3px; overflow: hidden; background: #f3e6da; box-shadow: 0 8px 14px -8px rgba(60, 35, 15, .5); }
.mini-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-book-cover > .ic { width: 22px; height: 22px; color: var(--copper-soft); }
.mini-book-title { font-family: var(--serif); font-size: 1rem; line-height: 1.25; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-book-title a:hover { color: var(--copper); }
.mini-book-price { margin-top: 4px; font-family: var(--serif); font-weight: 700; color: #b5321f; }

.promo-band { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(220px, .7fr); align-items: center; gap: 24px; padding: clamp(24px, 3vw, 36px); border-radius: 26px; color: #e6ebf5; box-shadow: var(--shadow);
    background: radial-gradient(ellipse at 60% 50%, rgba(240, 160, 110, .32), transparent 55%), linear-gradient(135deg, #142a5a, #0b1a3a); }
.promo-chip { display: inline-block; padding: 5px 14px; border-radius: 999px; background: linear-gradient(135deg, #f6c79c, #e0a06c); color: #4a1d0b; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.promo-band-title { margin-top: 12px; font-family: var(--serif); font-weight: 700; color: #fbefe4; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.15; }
.promo-band-copy p:last-child { margin-top: 8px; color: #c9d2e4; }
.promo-band-copy strong { color: var(--copper-soft); letter-spacing: .04em; }
.promo-band-covers { display: flex; justify-content: center; }
.promo-band-covers img { width: 96px; aspect-ratio: 3 / 4.3; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 0 16px 24px -12px rgba(0, 0, 0, .7); }
.promo-band-covers img + img { margin-left: -28px; }
.promo-band-covers img:nth-child(2) { transform: translateY(-8px); }
.promo-band-offer { display: grid; justify-items: center; gap: 4px; padding: 18px; border-radius: 18px; border: 1px solid rgba(233, 180, 138, .45); background: rgba(255, 255, 255, .05); text-align: center; }
.promo-band-offer strong { font-family: var(--serif); font-size: clamp(2.4rem, 2rem + 1.4vw, 3.2rem); line-height: 1; color: var(--copper-soft); }
.promo-band-offer .btn { margin-top: 10px; }

@media (max-width: 1100px) {
    .pick5-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .topic-row { grid-template-columns: 1fr; }
    .topic-row-head { border-right: 0; border-bottom: 1px solid var(--line); }
    .promo-band { grid-template-columns: 1fr auto; }
    .promo-band-covers { display: none; }
}
@media (max-width: 900px) {
    /* Stacked: dark top for the text, still life visible underneath. */
    .main-hero { display: block; min-height: 0; padding-bottom: 56vw;
        background: linear-gradient(180deg, rgba(8, 26, 64, .96) 0%, rgba(8, 26, 64, .85) 40%, rgba(8, 26, 64, 0) 62%), url("../img/category/main-hero-m.webp") 82% 100% / 190% auto no-repeat, #0e2257; }
}
@media (max-width: 640px) {
    .pick5-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .pick5-card { padding: 12px; }
    .pick5-cover { padding: 10px 14px 0; }
    .topic-row-books { grid-template-columns: 1fr; }
    .promo-band { grid-template-columns: 1fr; }
}
