@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg-deep: #0d0a0b;
  --bg-warm: #1a1214;
  --bg-card: #231a1d;
  --ember: #e8612d;
  --ember-glow: #ff7a42;
  --gold: #c9a96e;
  --cream: #f5ede3;
  --muted: #9a8e88;
  --blush: #d4a0a0;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(232,97,45,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(201,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--ember-glow);
}

.hero-lede {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
}

.hero-lede strong {
  color: var(--cream);
  font-weight: 500;
}

/* ---- DIVIDER ---- */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--gold));
  margin: 0 auto;
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.manifesto-inner {
  max-width: 700px;
  margin: 0 auto;
}

.manifesto blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.manifesto blockquote span {
  color: var(--gold);
}

.manifesto-caption {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ---- FEATURES ---- */
.features {
  padding: 6rem 2rem;
  background: var(--bg-warm);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 4rem;
}

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.features-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 500px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(201,169,110,0.08);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(232,97,45,0.25);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--cream);
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- GENRES ---- */
.genres {
  padding: 8rem 2rem;
  text-align: center;
}

.genres-inner {
  max-width: 900px;
  margin: 0 auto;
}

.genres h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 3rem;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.genre-tag {
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--blush);
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.genre-tag:nth-child(odd) {
  color: var(--gold);
}

.genre-tag:hover {
  border-color: var(--ember);
  color: var(--cream);
  background: rgba(232,97,45,0.08);
}

/* ---- CLOSING ---- */
.closing {
  padding: 8rem 2rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-warm) 100%);
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.closing h2 em {
  font-style: italic;
  color: var(--ember-glow);
}

.closing p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---- FOOTER ---- */
footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(201,169,110,0.08);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

footer p {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .hero { padding: 4rem 1.5rem 3rem; }
  .manifesto { padding: 5rem 1.5rem; }
  .features { padding: 4rem 1.5rem; }
  .genres { padding: 5rem 1.5rem; }
  .closing { padding: 5rem 1.5rem; }
  .feature-card { padding: 2rem 1.5rem; }
  .genre-tags { gap: 0.5rem; }
  .genre-tag { padding: 0.5rem 1rem; font-size: 0.8rem; }
}

/* ===== GLOBAL SHARED COMPONENTS ===== */

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--ember);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: var(--ember-glow); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(201,169,110,0.3);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--cream); }

.btn-ghost-sm {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(201,169,110,0.2);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.btn-ghost-sm:hover { color: var(--cream); border-color: var(--gold); }

/* Heat flames */
.flame { font-size: 0.85rem; opacity: 0.15; }
.flame.lit { opacity: 1; }

/* Section headings */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 2rem;
}

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13,10,11,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,169,110,0.06);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-brand span { color: var(--ember); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--cream); }
.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--ember);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--ember-glow); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: all 0.2s ease;
}
.nav-mobile {
  display: none;
  background: var(--bg-warm);
  border-top: 1px solid rgba(201,169,110,0.08);
  padding: 1rem 2rem 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile-link {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0;
}
.nav-mobile-link:hover { color: var(--cream); }
.nav-mobile-cta {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--ember);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 0.5rem;
  text-align: center;
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* Hero action buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* Footer links */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0.75rem 0;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--cream); }

/* ===== CATALOG PAGE ===== */
.catalog-page { padding-top: 60px; min-height: 100vh; }

.catalog-header {
  padding: 5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}
.catalog-header::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(232,97,45,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.catalog-header-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.catalog-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.catalog-header h1 em { font-style: italic; color: var(--ember-glow); }
.catalog-subtitle { color: var(--muted); font-size: 1.1rem; }

/* Genre filter bar */
.genre-filter-bar {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: rgba(13,10,11,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,169,110,0.06);
  padding: 0.75rem 2rem;
}
.genre-filter-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.filter-pill:hover { border-color: var(--ember); color: var(--cream); }
.filter-pill.active { background: var(--ember); border-color: var(--ember); color: var(--cream); font-weight: 600; }

/* Book grid */
.book-grid-wrapper { max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem 5rem; }
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.empty-state { color: var(--muted); padding: 2rem; }
.empty-state a { color: var(--ember); text-decoration: none; }

.book-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid rgba(201,169,110,0.07);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.book-card:hover { border-color: rgba(232,97,45,0.3); transform: translateY(-3px); }

.book-cover {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.book-cover-emoji { font-size: 3.5rem; }
.book-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.book-badge.premium { background: rgba(201,169,110,0.2); color: var(--gold); }
.book-badge.ongoing { background: rgba(232,97,45,0.2); color: var(--ember-glow); }

.book-meta { padding: 1.25rem 1.25rem 1.5rem; }
.book-genre-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ember);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.book-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.book-author { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; }
.book-heat { margin-bottom: 0.75rem; }
.book-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }

/* ===== BOOK DETAIL PAGE ===== */
.book-page { padding-top: 60px; min-height: 100vh; }

.book-hero {
  padding: 4rem 2rem 3rem;
  position: relative;
}
.book-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-deep) 100%);
  pointer-events: none;
}
.book-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.book-cover-lg {
  flex-shrink: 0;
  width: 180px;
  height: 240px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(201,169,110,0.1);
}
.book-cover-emoji-lg { font-size: 5rem; }

.book-info { flex: 1; min-width: 0; }
.book-breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.book-breadcrumb a { color: var(--muted); text-decoration: none; }
.book-breadcrumb a:hover { color: var(--cream); }

.book-subgenre-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ember);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.book-title-lg {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.book-author-lg { font-size: 1rem; color: var(--muted); margin-bottom: 1.25rem; }
.book-author-lg strong { color: var(--cream); font-weight: 500; }

.book-heat-row { display: flex; align-items: center; gap: 0.3rem; margin-bottom: 1.25rem; }
.heat-label { font-size: 0.8rem; color: var(--muted); margin-left: 0.5rem; }

.book-stats { display: flex; gap: 2rem; margin-bottom: 1.5rem; }
.book-stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--cream); }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.book-description-full { color: var(--muted); line-height: 1.8; font-size: 1rem; margin-bottom: 1.25rem; max-width: 560px; }

.book-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tag-pill {
  padding: 0.25rem 0.75rem;
  background: rgba(201,169,110,0.07);
  border: 1px solid rgba(201,169,110,0.12);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--muted);
}
.coming-soon-note { color: var(--muted); font-style: italic; font-size: 0.9rem; }

/* Chapter list */
.chapter-list-section { padding: 3rem 2rem 5rem; }
.chapter-list-inner { max-width: 720px; margin: 0 auto; }
.chapter-list { display: flex; flex-direction: column; gap: 0; border: 1px solid rgba(201,169,110,0.08); border-radius: 12px; overflow: hidden; }

.chapter-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(201,169,110,0.06);
  transition: background 0.2s ease;
  color: var(--cream);
}
.chapter-row:last-child { border-bottom: none; }
.chapter-row:hover { background: rgba(232,97,45,0.05); }
.chapter-row.locked { opacity: 0.6; }
.chapter-row.more-chapters { background: rgba(201,169,110,0.03); color: var(--muted); }

.chapter-num { font-size: 0.8rem; color: var(--muted); font-weight: 500; min-width: 2.5rem; }
.chapter-info { flex: 1; min-width: 0; }
.chapter-title { font-size: 0.95rem; color: var(--cream); display: block; }
.chapter-words { font-size: 0.75rem; color: var(--muted); display: block; margin-top: 0.1rem; }
.chapter-arrow { color: var(--ember); font-size: 0.9rem; flex-shrink: 0; }
.chapter-lock { font-size: 0.85rem; flex-shrink: 0; }

@media (max-width: 680px) {
  .book-hero-inner { flex-direction: column; gap: 1.5rem; }
  .book-cover-lg { width: 120px; height: 160px; }
  .book-cover-emoji-lg { font-size: 3.5rem; }
  .book-stats { gap: 1.25rem; }
}

/* ===== READER PAGE ===== */
.reader-body {
  background: var(--reader-bg, #0d0a0b);
  min-height: 100vh;
}

.reader-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13,10,11,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,169,110,0.06);
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.reader-back {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
  flex-shrink: 0;
}
.reader-back:hover { color: var(--cream); }
.reader-title-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}
.reader-book-name, .reader-chapter-name {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reader-book-name { color: var(--cream); font-weight: 500; }
.reader-chapter-name { color: var(--muted); }
.reader-sep { color: var(--muted); flex-shrink: 0; }

.reader-controls {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}
.ctrl-btn {
  background: none;
  border: 1px solid rgba(201,169,110,0.12);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ctrl-btn:hover { border-color: var(--gold); color: var(--cream); }

.reader-main { padding-top: 56px; min-height: 100vh; }

.reader-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}
.chapter-header { text-align: center; margin-bottom: 3.5rem; }
.chapter-num-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1rem;
}
.chapter-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}
.reader-content {
  color: var(--reader-text, var(--cream));
}
.reader-content p {
  margin-bottom: 1.5em;
  color: inherit;
}

/* Chapter navigation */
.chapter-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,169,110,0.08);
  flex-wrap: wrap;
  gap: 1rem;
}
.chapter-nav-btn {
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 4px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.chapter-nav-btn:hover { border-color: var(--ember); color: var(--ember-glow); }
.chapter-nav-book {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.chapter-nav-book:hover { color: var(--cream); }
.chapter-nav-end { text-align: center; }
.chapter-nav-end p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.75rem; }

/* Reader gate */
.reader-gate {
  max-width: 520px;
  margin: 8rem auto 4rem;
  padding: 0 2rem;
  text-align: center;
}
.gate-inner { }
.gate-emoji { font-size: 3rem; margin-bottom: 1.5rem; display: block; }
.reader-gate h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1rem;
}
.reader-gate p { color: var(--muted); line-height: 1.7; margin-bottom: 2rem; }
.reader-gate .btn-primary { margin-bottom: 1rem; }

@media (max-width: 600px) {
  .reader-header { padding: 0 1rem; }
  .reader-title-bar { display: none; }
  .reader-article { padding: 3rem 1.25rem 4rem; }
}

/* ===== PRICING PAGE ===== */
.pricing-page { padding-top: 60px; min-height: 100vh; }

.pricing-header {
  padding: 5rem 2rem 3rem;
  text-align: center;
}
.pricing-header-inner { max-width: 600px; margin: 0 auto; }
.pricing-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.pricing-header h1 em { font-style: italic; color: var(--ember-glow); }
.pricing-subtitle { color: var(--muted); font-size: 1.1rem; }

.pricing-cards {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(201,169,110,0.1);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
}
.pricing-card-featured {
  border-color: rgba(232,97,45,0.35);
  background: linear-gradient(145deg, #231a1d 0%, #1c1214 100%);
}
.plan-featured-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ember);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.plan-price { display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: 0.5rem; }
.plan-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--cream);
}
.plan-period { color: var(--muted); font-size: 1rem; }
.plan-tagline { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

.plan-features { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.feat {
  font-size: 0.9rem;
  padding-left: 1.5rem;
  position: relative;
}
.feat::before { position: absolute; left: 0; }
.feat.yes { color: var(--cream); }
.feat.yes::before { content: '✓'; color: var(--gold); font-weight: 700; }
.feat.no { color: var(--muted); }
.feat.no::before { content: '–'; color: rgba(154,142,136,0.4); }

.btn-plan {
  display: block;
  text-align: center;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-plan-ember { background: var(--ember); color: var(--cream); }
.btn-plan-ember:hover { background: var(--ember-glow); }
.btn-plan-ghost { border: 1px solid rgba(201,169,110,0.25); color: var(--gold); }
.btn-plan-ghost:hover { border-color: var(--gold); color: var(--cream); }

/* FAQ */
.pricing-faq { padding: 2rem 2rem 4rem; }
.faq-inner { max-width: 680px; margin: 0 auto; }
.faq-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 2rem;
}
.faq-list { display: flex; flex-direction: column; gap: 0; border: 1px solid rgba(201,169,110,0.08); border-radius: 12px; overflow: hidden; }
.faq-item {
  border-bottom: 1px solid rgba(201,169,110,0.06);
  padding: 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--cream);
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  transition: background 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--ember); font-size: 1.1rem; font-weight: 300; }
.faq-item[open] summary { background: rgba(232,97,45,0.04); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.25rem 1.25rem; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* CTA strip */
.pricing-cta-strip {
  background: var(--bg-warm);
  border-top: 1px solid rgba(201,169,110,0.06);
  padding: 3rem 2rem;
  text-align: center;
}
.cta-strip-inner { max-width: 500px; margin: 0 auto; }
.cta-strip-text { color: var(--muted); font-size: 1rem; margin-bottom: 1.25rem; }

@media (max-width: 640px) {
  .pricing-cards { grid-template-columns: 1fr; }
}

/* ===== ERROR PAGE ===== */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}
.error-inner {
  text-align: center;
  max-width: 440px;
}
.error-emoji { font-size: 3.5rem; display: block; margin-bottom: 1.5rem; }
.error-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1rem;
}
.error-inner p { color: var(--muted); margin-bottom: 2rem; font-size: 1rem; }

/* ===== LANDING PAGE NAV OVERRIDE ===== */
/* The landing page has a fixed-top nav so we push it down slightly */
.hero { padding-top: 7rem; }