/* ===========================================================
 * Biblio.fr — Theme styles
 * =========================================================== */

:root {
	--brand: #177568;
	--brand-hover: #0f5a50;
	--brand-muted: rgba(23, 117, 104, 0.1);
	--ink: #09090b;
	--ink-2: #52525b;
	--paper: #ffffff;
	--paper-2: #f7f7f5;
	--paper-3: #efefec;
	--rule: #e4e4e7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-weight: 400;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand); color: #fff; }

.bf-container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .bf-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .bf-container { padding: 0 2rem; } }

.bf-section { padding: 3rem 0; }
@media (min-width: 768px) { .bf-section { padding: 5rem 0; } }

/* Typography */
.overline { font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; font-size: 11px; color: var(--ink-2); margin: 0; }
.overline.brand { color: var(--brand); }
em, .italic { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; }

/* Buttons */
.btn-brand {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.95rem 1.7rem; background: var(--brand); color: #fff;
	font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800;
	border-radius: 999px; border: 0; cursor: pointer;
	box-shadow: 0 10px 30px rgba(23, 117, 104, 0.25);
	transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
	text-decoration: none; font-size: 0.95rem;
}
.btn-brand:hover { transform: translateY(-2px); background: var(--brand-hover); box-shadow: 0 18px 40px rgba(23, 117, 104, 0.35); }
.btn-brand:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-ghost {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.85rem 1.5rem; background: transparent; color: var(--ink);
	border: 1px solid var(--ink); border-radius: 999px;
	font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700;
	cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-secondary {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.75rem 1.25rem; background: #fff; color: #3f3f46;
	border: 1px solid var(--rule); border-radius: 999px;
	font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { border-color: #18181b; color: #09090b; }

.link-btn { background: none; border: 0; color: var(--ink-2); cursor: pointer; text-decoration: underline; font-size: 0.875rem; padding: 0.25rem 0.5rem; }
.link-btn:hover { color: var(--ink); }

/* NAV */
.glass-nav {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
	border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
@media (min-width: 768px) { .nav-inner { height: 80px; } }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-logo-mark { width: 36px; height: 36px; border-radius: 999px; background: #09090b; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.nav-logo-text { font-family: 'Cabinet Grotesk'; font-weight: 800; letter-spacing: -0.04em; font-size: 1.15rem; }
.nav-menu { display: none; list-style: none; gap: 2rem; margin: 0; padding: 0; }
.nav-menu a { color: #52525b; font-weight: 500; transition: color 0.2s; }
.nav-menu a:hover, .nav-menu .current-menu-item a { color: #09090b; }
@media (min-width: 1024px) { .nav-menu { display: flex; } }
.nav-search { display: none; position: relative; align-items: center; width: 280px; }
@media (min-width: 768px) { .nav-search { display: flex; } }
.nav-search-icon { position: absolute; left: 12px; color: #71717a; }
.input-search {
	width: 100%; padding: 0.7rem 1rem 0.7rem 2.5rem;
	background: var(--paper-2); border: 1px solid transparent; border-radius: 999px;
	font-family: 'Satoshi'; font-size: 0.92rem;
}
.input-search:focus { outline: none; border-color: var(--ink); background: #fff; }
.nav-mobile-toggle { display: flex; flex-direction: column; gap: 4px; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 999px; background: #fff; cursor: pointer; }
.nav-mobile-toggle span { width: 16px; height: 1.5px; background: #09090b; }
@media (min-width: 1024px) { .nav-mobile-toggle { display: none; } }
.nav-mobile-panel { display: none; padding: 1rem 0; }
.nav-mobile-panel.open { display: block; }
.nav-mobile-panel a { display: block; padding: 0.6rem 0; color: #18181b; }

/* HERO */
.hero { padding-top: 3rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .hero { padding-top: 5rem; padding-bottom: 4rem; } }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 2.5rem; } }
.hero-title { font-family: 'Cabinet Grotesk'; font-weight: 900; font-size: clamp(3rem, 8vw, 5.75rem); line-height: 0.92; letter-spacing: -0.04em; margin: 0.75rem 0 0; color: #09090b; }
.hero-sub { font-size: 1rem; color: #52525b; max-width: 560px; line-height: 1.65; margin-top: 1.4rem; }
@media (min-width: 640px) { .hero-sub { font-size: 1.1rem; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.hero-fallback-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 20px; border: 1px solid var(--rule); }

/* BOOK SLIDER */
.book-slider { position: relative; width: 100%; max-width: 380px; margin: 0 auto; }
.slider-badge { position: absolute; top: -12px; left: 16px; z-index: 20; padding: 6px 14px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.book-slider-stage { position: relative; aspect-ratio: 4/5; }
.book-slide { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; transition: transform 0.7s cubic-bezier(.2,.8,.2,1), opacity 0.5s; border: 1px solid var(--rule); display: block; }
.book-slide img { width: 100%; height: 100%; object-fit: cover; }
.book-slide--front { z-index: 3; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35), 0 10px 20px -10px rgba(0,0,0,0.2); animation: slide-front-in 0.5s; }
@keyframes slide-front-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.book-slide--back-left { z-index: 1; transform: translate(-14%, 6%) rotate(-8deg) scale(0.9); opacity: 0.4; }
.book-slide--back-right { z-index: 2; transform: translate(14%, 6%) rotate(8deg) scale(0.9); opacity: 0.4; }
.book-slide-overlay { position: absolute; inset: auto 0 0 0; padding: 1rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; background: linear-gradient(to top, rgba(0,0,0,0.88), transparent); color: #fff; }
.book-slide-overlay .meta-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.85; }
.book-slide-overlay .meta-title { font-family: 'Cormorant Garamond'; font-style: italic; font-size: 1.1rem; line-height: 1.2; margin: 4px 0 2px; }
.book-slide-overlay .meta-author { font-size: 0.78rem; opacity: 0.85; }
.book-slide-overlay .arrow-btn { width: 36px; height: 36px; border-radius: 999px; background: #fff; color: #09090b; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 1.25rem; }
.slider-dot { height: 6px; width: 6px; border: 0; padding: 0; border-radius: 999px; background: #d4d4d8; cursor: pointer; transition: all 0.2s; }
.slider-dot.is-active { width: 28px; background: #09090b; }

/* MARQUEE */
.bf-marquee { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: rgba(245,245,244,0.5); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: scroll 35s linear infinite; padding: 1rem 0; color: #71717a; font-family: 'Cabinet Grotesk'; font-size: 1.15rem; letter-spacing: -0.02em; }
.marquee-line { display: flex; align-items: center; }
.marquee-item { padding: 0 1.4rem; display: flex; align-items: center; gap: 1.4rem; }
.marquee-bullet { color: var(--brand); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (min-width: 640px) { .stats-grid { gap: 2rem; } }
.stat-item { padding-top: 1.25rem; border-top: 2px solid #09090b; }
@media (min-width: 640px) { .stat-item { padding-top: 2rem; } }
.stat-num { font-family: 'Cabinet Grotesk'; font-weight: 900; font-size: clamp(2.25rem, 6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1; }
.stat-label { font-weight: 600; margin: 0.6rem 0 0; }
.stat-cap { color: #71717a; font-size: 0.85rem; margin: 0; }

/* SECTION HEAD */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.section-title { font-family: 'Cabinet Grotesk'; font-weight: 900; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.03em; line-height: 1; margin: 0.6rem 0 0; }
.see-all { display: none; font-weight: 600; font-size: 0.9rem; color: #18181b; }
.see-all:hover { color: var(--brand); }
@media (min-width: 768px) { .see-all { display: inline-flex; align-items: center; gap: 0.4rem; } }

/* CATEGORY GRID */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.cat-pill { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.9rem; border: 1px solid var(--rule); border-radius: 12px; background: #fff; transition: all 0.2s; min-height: 64px; }
.cat-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.cat-pill-ico { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; border-radius: 10px; flex-shrink: 0; }
.cat-pill-info { min-width: 0; }
.cat-pill-name { font-family: 'Cabinet Grotesk'; font-weight: 700; font-size: 0.9rem; line-height: 1.2; margin: 0; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-pill-count { font-size: 0.72rem; color: var(--ink-2); margin: 2px 0 0; }

/* BOOK GRID (tech-grid) */
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin-top: 1rem; }
@media (min-width: 1024px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } }
.tech-grid > * { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.book-card { display: block; padding: 0.75rem; background: #fff; transition: transform 0.3s; text-decoration: none; color: inherit; }
.book-card:hover { transform: translateY(-3px); }
@media (min-width: 640px) { .book-card { padding: 1.25rem; } }
.book-card .cover-wrap { aspect-ratio: 3/4; overflow: hidden; border-radius: 6px; background: #f4f4f5; margin-bottom: 0.75rem; position: relative; }
.book-card .cover-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.book-card:hover .cover-wrap img { transform: scale(1.05); }
.book-cat-badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.92); font-size: 10px; font-weight: 600; backdrop-filter: blur(6px); }
.book-card-title { font-family: 'Cabinet Grotesk'; font-weight: 700; font-size: 0.95rem; line-height: 1.25; margin: 0 0 0.5rem; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-card-meta { display: flex; justify-content: space-between; font-size: 0.72rem; color: #71717a; }
.book-card-link { color: var(--brand); font-weight: 600; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 0.4rem; margin: 2.5rem 0 0; flex-wrap: wrap; }
.pagination ul, .pagination .page-numbers { display: inline-flex; gap: 0.4rem; padding: 0; margin: 0; list-style: none; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 0.5rem; border-radius: 999px; border: 1px solid var(--rule); color: #52525b; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.2s; }
.pagination .page-numbers:hover { border-color: #09090b; color: #09090b; }
.pagination .page-numbers.current { background: #09090b; color: #fff; border-color: #09090b; }
.pagination .page-numbers.dots { border: 0; }

/* ARCHIVE */
.archive-page, .taxonomy-page, .categories-page, .how-page, .single-post, .single-page { padding: 3rem 1rem; }
@media (min-width: 768px) { .archive-page, .taxonomy-page, .categories-page, .how-page, .single-post, .single-page { padding: 4rem 2rem; } }
.archive-title { font-family: 'Cabinet Grotesk'; font-weight: 900; font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1; letter-spacing: -0.04em; margin: 0.5rem 0 0; }
.page-lead { color: #52525b; font-size: 1.05rem; line-height: 1.65; margin-top: 1.4rem; max-width: 640px; }
.breadcrumb { font-size: 0.85rem; color: #71717a; margin-bottom: 2rem; }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: #09090b; }

/* FILTER BAR */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }
.filter-btn { padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--rule); font-size: 0.85rem; font-weight: 600; color: #18181b; transition: all 0.2s; text-decoration: none; }
.filter-btn:hover { border-color: #09090b; }
.filter-btn.is-active { background: #09090b; color: #fff; border-color: #09090b; }

/* TAX HEADER */
.tax-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.tax-emoji { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; font-size: 28px; margin-bottom: 1rem; }
.tax-title { font-family: 'Cabinet Grotesk'; font-weight: 900; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.04em; line-height: 1; margin: 0; }
.tax-desc { color: #52525b; max-width: 540px; line-height: 1.6; margin-top: 1rem; }
.tax-count { font-family: 'Cabinet Grotesk'; color: #71717a; }
.tax-count span { color: #09090b; font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; }

/* BOOK DETAIL */
.book-detail { padding: 3rem 1rem; }
@media (min-width: 768px) { .book-detail { padding: 3rem 2rem; } }
.book-detail-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 768px) { .book-detail-grid { grid-template-columns: 1fr 2fr; gap: 3.5rem; } }
.book-detail-side { position: relative; }
@media (min-width: 768px) { .book-detail-side { position: sticky; top: 100px; align-self: flex-start; } }
.book-cover-card { border-radius: 20px; overflow: hidden; border: 1px solid var(--rule); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.15); }
.book-cover-card img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.book-meta-card { background: #fafafa; border: 1px solid var(--rule); border-radius: 14px; padding: 1.25rem; margin-top: 1.5rem; font-size: 0.875rem; }
.meta-row { display: flex; justify-content: space-between; padding: 0.4rem 0; }
.meta-row span { color: #71717a; }
.meta-row strong { color: #09090b; font-weight: 600; }
.book-title { font-family: 'Cabinet Grotesk'; font-weight: 900; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.04em; line-height: 1; margin: 0.6rem 0 0; }
.book-author { font-family: 'Cormorant Garamond'; font-style: italic; font-size: 1.4rem; color: #3f3f46; margin: 0.8rem 0 0; }
.book-lead { font-size: 1.1rem; color: #3f3f46; line-height: 1.7; margin-top: 2rem; }

.why-read { background: #09090b; color: #fff; border-radius: 18px; padding: 2rem; margin: 3rem 0; }
.why-read-overline { color: #a1a1aa !important; }
.why-read-quote { font-family: 'Cormorant Garamond'; font-style: italic; font-size: 1.4rem; line-height: 1.45; margin: 0.75rem 0 0; }
@media (min-width: 768px) { .why-read-quote { font-size: 1.6rem; } }

.takeaways h2 { font-family: 'Cabinet Grotesk'; font-weight: 800; font-size: 1.85rem; letter-spacing: -0.03em; margin: 0 0 1.25rem; }
.takeaways ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.takeaways li { display: flex; gap: 1rem; padding: 1rem; border-radius: 12px; background: #fafafa; border: 1px solid var(--rule); line-height: 1.6; }
.takeaway-num { font-family: 'Cabinet Grotesk'; font-weight: 900; font-size: 1.85rem; color: var(--brand); line-height: 1; }

.prose-article { line-height: 1.75; color: #27272a; margin-top: 3rem; }
.prose-article h2 { font-family: 'Cabinet Grotesk'; font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; margin-top: 2.25rem; margin-bottom: 0.85rem; line-height: 1.15; }
.prose-article h3 { font-family: 'Cabinet Grotesk'; font-weight: 700; font-size: 1.2rem; margin-top: 1.6rem; margin-bottom: 0.6rem; }
.prose-article p { font-size: 1.02rem; line-height: 1.75; margin: 0 0 1.05rem; }
.prose-article ul li { margin-bottom: 0.5rem; }
.prose-article a { color: var(--brand); text-decoration: underline; }

.about-author { padding-top: 2.5rem; border-top: 1px solid var(--rule); margin-top: 3rem; }
.about-author h2 { font-family: 'Cabinet Grotesk'; font-weight: 800; font-size: 1.6rem; margin: 0.5rem 0 1rem; }

.book-cta-bottom { margin-top: 3rem; padding: 2rem; border: 1px solid var(--rule); border-radius: 18px; text-align: center; background: linear-gradient(to bottom right, #fff, #fafafa, #fff); }
.book-cta-bottom h3 { font-family: 'Cabinet Grotesk'; font-weight: 900; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.03em; margin: 0.6rem 0 1.5rem; }

.related-books { margin-top: 4rem; }

/* DOWNLOAD GATE */
.download-gate { background: rgba(245,245,244,0.4); min-height: 80vh; padding: 2.5rem 0; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: #52525b; font-size: 0.875rem; margin-bottom: 1.5rem; }
.back-link:hover { color: #09090b; }
.step-indicator { display: flex; gap: 0.6rem; margin-bottom: 2rem; padding: 0; list-style: none; overflow-x: auto; padding-bottom: 0.5rem; }
.step-indicator li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; flex-shrink: 0; }
.step-bubble { width: 32px; height: 32px; border-radius: 999px; background: #f4f4f5; color: #71717a; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.step-bubble.is-done, .step-bubble.is-current { background: #09090b; color: #fff; }
.step-label { color: #71717a; }
.step-label.is-active { color: #09090b; font-weight: 600; }
.step-rule { width: 24px; height: 1px; background: #d4d4d8; }
.dl-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .dl-grid { grid-template-columns: 1fr 2fr; } }
.dl-grid-payment { grid-template-columns: 1fr; }
@media (min-width: 768px) { .dl-grid-payment { grid-template-columns: 2fr 1fr; } }
.dl-aside { text-align: center; }
@media (min-width: 768px) { .dl-aside { text-align: left; } }
.dl-cover { max-width: 240px; aspect-ratio: 3/4; object-fit: cover; border-radius: 18px; border: 1px solid var(--rule); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.15); margin: 0 auto; }
@media (min-width: 768px) { .dl-cover { max-width: none; margin: 0; } }
.dl-cover-title { font-family: 'Cormorant Garamond'; font-style: italic; font-size: 1.15rem; line-height: 1.2; margin: 1rem 0 0.25rem; }
.dl-cover-author { font-size: 0.875rem; color: #52525b; margin: 0; }
.badge-soft { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; border-radius: 999px; background: var(--brand-muted); color: var(--brand); font-size: 0.75rem; font-weight: 700; margin-bottom: 1rem; }
.dl-title { font-family: 'Cabinet Grotesk'; font-weight: 900; font-size: clamp(1.85rem, 4vw, 3rem); letter-spacing: -0.04em; line-height: 1.05; margin: 0; }
.dl-lead { color: #52525b; font-size: 1rem; line-height: 1.65; margin-top: 1.25rem; }
.amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 768px) { .amount-grid { grid-template-columns: repeat(4, 1fr); } }
.donation-card { padding: 1.6rem 1rem; background: #fff; border: 1px solid var(--rule); border-radius: 18px; text-align: center; cursor: pointer; transition: all 0.25s; font-family: inherit; }
.donation-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.donation-card.is-active { border-color: var(--brand); background: var(--brand-muted); }
.donation-card .amt { font-family: 'Cabinet Grotesk'; font-weight: 900; font-size: 2.25rem; letter-spacing: -0.04em; line-height: 1; display: block; }
.donation-card .cap { font-size: 0.72rem; color: #71717a; margin-top: 0.5rem; display: block; }
.custom-amount-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem; margin-top: 0.75rem; }
.custom-amount-input-wrap { display: flex; align-items: center; gap: 0.5rem; }
.custom-amount-input-wrap input { width: 90px; padding: 0.5rem 0.75rem; border: 1px solid #d4d4d8; border-radius: 8px; text-align: right; font-family: 'Cabinet Grotesk'; font-weight: 800; font-size: 1.15rem; }
.custom-amount-input-wrap span { font-family: 'Cabinet Grotesk'; font-size: 1.15rem; color: #71717a; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.85rem; color: #52525b; margin: 2rem 0; }
.actions { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; margin-top: 1rem; }
@media (min-width: 640px) { .actions { flex-direction: row; align-items: center; } }
.tiny-note { font-size: 0.72rem; color: #71717a; line-height: 1.5; max-width: 540px; margin-top: 1.5rem; }
.tiny-note.centered { text-align: center; margin-left: auto; margin-right: auto; }

.hidden { display: none !important; }

/* PAYMENT FORM */
#payment-form .form-row { margin-bottom: 1rem; }
#payment-form label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; }
#payment-form input { width: 100%; padding: 0.85rem 1rem; border: 1px solid #d4d4d8; border-radius: 12px; font-family: inherit; font-size: 0.95rem; }
#payment-form input:focus { outline: none; border-color: #09090b; }
#payment-form input.is-invalid { border-color: #ef4444; }
.form-row-2cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dl-recap { background: #09090b; color: #fff; border-radius: 18px; padding: 1.5rem; }
.recap-overline { color: #a1a1aa !important; }
.recap-book { display: flex; gap: 1rem; align-items: center; margin: 1rem 0; }
.recap-book img { width: 60px; height: 80px; object-fit: cover; border-radius: 6px; }
.recap-title { font-family: 'Cormorant Garamond'; font-style: italic; font-size: 1.1rem; line-height: 1.2; margin: 0; }
.recap-author { font-size: 0.78rem; color: #a1a1aa; margin: 0.25rem 0 0; }
.recap-line { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.875rem; border-top: 1px solid #27272a; }
.recap-line:first-of-type { border-top: 0; }
.recap-line span { color: #a1a1aa; }
.recap-line.recap-total { font-family: 'Cabinet Grotesk'; font-size: 1.15rem; font-weight: 800; padding-top: 1rem; }
.recap-line.recap-total strong { color: var(--brand); }

/* PREP & READY */
.prep-wrap, .ready-wrap { max-width: 600px; margin: 2rem auto; text-align: center; }
.prep-icon { width: 72px; height: 72px; border-radius: 999px; background: var(--brand-muted); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 2rem; }
.ready-icon { width: 72px; height: 72px; border-radius: 999px; background: #d1fae5; color: #047857; display: inline-flex; align-items: center; justify-content: center; font-size: 36px; margin-bottom: 2rem; font-weight: 800; }
.progress-track { width: 100%; height: 6px; background: var(--paper-3); border-radius: 999px; overflow: hidden; margin-top: 2rem; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 999px; width: 0; transition: width 0.3s; }
.prep-info { font-size: 0.875rem; color: #71717a; margin-top: 0.75rem; }
.ready-card { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.75rem; background: #fff; border: 1px solid var(--rule); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.1); max-width: 420px; margin: 2.5rem auto 0; }
.ready-info { display: flex; gap: 1rem; align-items: center; text-align: left; }
.ready-info img { width: 80px; height: 110px; object-fit: cover; border-radius: 6px; }

/* COPYRIGHT MODAL */
.copyright-modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.6); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
@media (min-width: 640px) { .copyright-modal { align-items: center; padding: 1rem; } }
.modal-inner { background: #fff; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; border-radius: 24px 24px 0 0; }
@media (min-width: 640px) { .modal-inner { border-radius: 18px; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid #f4f4f5; position: sticky; top: 0; background: #fff; }
.modal-head h3 { font-family: 'Cabinet Grotesk'; font-weight: 800; font-size: 1.2rem; margin: 0; }
.modal-close { width: 32px; height: 32px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-size: 1.25rem; }
.modal-close:hover { background: #f4f4f5; }
.modal-body { padding: 1.5rem; }
.modal-body .form-row { margin-bottom: 1rem; }
.modal-body label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; }
.modal-body input, .modal-body textarea, .modal-body select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--rule); border-radius: 12px; font-family: inherit; font-size: 0.95rem; }
.amber-note { padding: 0.85rem 1rem; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; color: #78350f; font-size: 0.85rem; line-height: 1.55; margin-bottom: 1rem; }

/* HOW TO DOWNLOAD */
.how-steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; margin-top: 3rem; }
.how-step { display: flex; gap: 1.25rem; padding: 1.5rem; border: 1px solid var(--rule); border-radius: 18px; background: #fff; }
.how-step-num { font-family: 'Cabinet Grotesk'; font-weight: 900; font-size: 2.4rem; color: var(--brand); letter-spacing: -0.04em; line-height: 1; flex-shrink: 0; }
.how-step h3 { font-family: 'Cabinet Grotesk'; font-weight: 800; font-size: 1.25rem; margin: 0 0 0.4rem; }
.how-step p { color: #52525b; line-height: 1.6; margin: 0; }
.guarantee-block { margin-top: 3rem; padding: 2rem; background: #fafafa; border: 1px solid var(--rule); border-radius: 18px; }
.guarantee-block h2 { font-family: 'Cabinet Grotesk'; font-weight: 800; font-size: 1.5rem; margin: 0 0 1rem; }
.guarantee-block ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.faq-section { margin-top: 4rem; }
.faq-section h2 { font-family: 'Cabinet Grotesk'; font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; line-height: 1; margin: 0.6rem 0 2rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.65rem; }
.faq-item { border: 1px solid var(--rule); border-radius: 18px; background: #fff; overflow: hidden; transition: border-color 0.2s; }
.faq-item[open] { border-color: #09090b; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 1.4rem; font-family: 'Cabinet Grotesk'; font-weight: 700; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; border: 1px solid #d4d4d8; color: #52525b; font-size: 1.2rem; line-height: 1; transition: all 0.25s; flex-shrink: 0; }
.faq-item[open] .faq-plus { background: #09090b; color: #fff; border-color: #09090b; transform: rotate(45deg); }
.faq-answer { padding: 0 1.4rem 1.2rem; color: #52525b; line-height: 1.65; }

/* CTA TELEGRAM */
.cta-telegram { background: #09090b; color: #fff; border-radius: 24px; padding: 3rem 1.5rem; position: relative; overflow: hidden; }
@media (min-width: 768px) { .cta-telegram { padding: 4.5rem 3.5rem; } }
.cta-telegram::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(23,117,104,0.5), transparent 45%); pointer-events: none; }
.cta-overline { color: #a1a1aa !important; }
.cta-title { font-family: 'Cabinet Grotesk'; font-weight: 900; font-size: clamp(1.85rem, 4vw, 3rem); letter-spacing: -0.04em; line-height: 1; margin: 1rem 0 0; position: relative; }
.cta-title em { color: var(--brand); }
.cta-sub { color: #d4d4d8; max-width: 540px; margin-top: 1.2rem; position: relative; }
.cta-telegram .btn-brand { margin-top: 1.5rem; position: relative; }

/* FOOTER */
.bf-footer { margin-top: 4rem; border-top: 1px solid var(--rule); background: #fff; }
@media (min-width: 768px) { .bf-footer { margin-top: 6rem; } }
.footer-mobile-cta { padding-top: 2.5rem; }
@media (min-width: 768px) { .footer-mobile-cta { display: none; } }
.footer-mobile-cta-card { padding: 1.25rem; background: #09090b; color: #fff; border-radius: 16px; }
.footer-mobile-cta-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.footer-mobile-cta-bullet { width: 28px; height: 28px; border-radius: 999px; background: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.footer-mobile-cta-head .overline { color: #a1a1aa; font-size: 10px; }
.footer-mobile-cta-title { font-family: 'Cabinet Grotesk'; font-weight: 800; font-size: 1.15rem; line-height: 1.2; margin: 0; }
.footer-mobile-cta-title em { color: var(--brand); }
.footer-mobile-cta-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--brand); font-weight: 600; font-size: 0.875rem; margin-top: 0.75rem; }
.footer-grid { display: grid; gap: 2rem; padding: 2.5rem 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: 4rem 2rem; } }
.footer-brand { grid-column: 1 / -1; display: none; }
@media (min-width: 768px) { .footer-brand { display: block; grid-column: auto; } }
.footer-title { font-family: 'Cabinet Grotesk'; font-weight: 900; font-size: 1.7rem; letter-spacing: -0.04em; line-height: 1; margin: 0.5rem 0; }
.footer-title em { color: var(--brand); }
.footer-tagline { color: #52525b; line-height: 1.6; max-width: 420px; }
.footer-col p.overline { font-size: 10px; margin-bottom: 0.85rem; }
.footer-col ul, .footer-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a, .footer-menu a { color: #3f3f46; font-size: 0.875rem; }
.footer-col a:hover, .footer-menu a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--rule); }
.footer-bottom .bf-container { display: flex; flex-direction: column; gap: 0.4rem; align-items: center; padding: 1.25rem 1rem; }
@media (min-width: 640px) { .footer-bottom .bf-container { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: 0.78rem; color: #71717a; margin: 0; }

/* AD ZONES */
.biblio-ad { margin: 2rem auto; padding: 0.5rem 1rem; max-width: 1200px; text-align: center; position: relative; }
.biblio-ad-label { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #a1a1aa; margin-bottom: 0.4rem; }
.biblio-ad img, .biblio-ad iframe { max-width: 100%; height: auto; border-radius: 8px; }

/* ACCESSIBILITY */
*:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* RESPONSIVE TWEAKS */
@media (max-width: 639px) {
	.book-slide--back-left, .book-slide--back-right { opacity: 0.25; }
	.nav-search { display: none; }
}
