/* ============================================================
   Said & Saved — Book Components
   ============================================================ */

/* -------------------------------------------------------
   THE BOOK (Hero Section)
   ------------------------------------------------------- */

.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-16) var(--sp-4) var(--sp-12);
  background: var(--page-cream);
  position: relative;

  /* Subtle paper texture using CSS lines */
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 27px,
    rgba(28, 25, 23, 0.028) 27px,
    rgba(28, 25, 23, 0.028) 28px
  );
}

.book-scene {
  perspective: 2400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.book {
  display: flex;
  position: relative;
  transform-style: preserve-3d;
  filter: drop-shadow(0 32px 48px rgba(28, 25, 23, 0.28));
}

/* 3D Book Wrapper */
.book-3d-wrap {
  position: relative;
  width: 480px;
  height: 640px;
  margin: 0 auto;
  transform-style: preserve-3d;
  filter: drop-shadow(0 32px 48px rgba(28, 25, 23, 0.28));
}

/* --- Spine --- */

.book__spine {
  width: 32px;
  min-height: 520px;
  background: var(--book-spine);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  border-radius: 2px 0 0 2px;
}

.book__spine::after {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: var(--book-gold-dim);
  opacity: 0.5;
}

.book__spine-text {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--book-gold-dim);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  padding: var(--sp-2) 0;
}

/* --- Cover --- */

.book__cover {
  position: absolute !important;
  top: 0 !important;
  left: 36px !important;
  width: calc(100% - 36px) !important;
  height: 100% !important;
  background: var(--book-cover);
  padding: 32px 40px;
  display: flex !important;
  flex-direction: column !important;
  transform-origin: left center !important;
  transform-style: preserve-3d;
  z-index: 10 !important;
  border-radius: 0 2px 2px 0;
  border-right: 4px solid #0A1520 !important;
  overflow: hidden;
  transition: transform 1.4s cubic-bezier(0.645, 0.045, 0.355, 1.000) !important;
  cursor: pointer !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.book__cover.is-open {
  transform: perspective(2000px) rotateY(-162deg) !important;
}

/* Decorative border frame on cover */
.book__cover::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--book-gold-dim);
  opacity: 0.4;
  pointer-events: none;
}
.book__cover::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid var(--book-gold-dim);
  opacity: 0.15;
  pointer-events: none;
}

/* --- Cover layout sections --- */

.book__cover-top {
  text-align: center;
  margin-bottom: var(--sp-6);
  padding-top: var(--sp-1);
}

.book__genre {
  font-family: var(--font-cinzel);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #C4A45A;
  opacity: 1;
  margin-bottom: var(--sp-2);
}

.book__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #C4A45A;
  font-family: var(--font-display);
  font-size: 12px;
  opacity: 0.6;
}

.book__ornament-line {
  flex: 1;
  height: 1px;
  background: #C4A45A;
  max-width: 40px;
  opacity: 0.6;
}

/* --- Quill mark on cover --- */

.book__quill-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.book__quill-mark svg {
  width: 28px;
  height: 40px;
  opacity: 0.9;
}

/* --- Title section on cover --- */

.book__title-area {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.book__title-said {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 300;
  color: var(--book-cream);
  line-height: 1;
  letter-spacing: 0.06em;
  display: block;
}

.book__title-and {
  font-family: var(--font-display);
  font-size: 42px;
  font-style: italic;
  font-weight: 300;
  color: var(--book-gold);
  line-height: 1;
  display: block;
  margin: 4px 0;
}

.book__title-saved {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 300;
  color: var(--book-cream);
  line-height: 1;
  letter-spacing: 0.06em;
  display: block;
}

.book__center-rule {
  width: 40px;
  height: 1px;
  background: var(--book-gold);
  margin: 20px auto;
  opacity: 0.7;
}

.book__tagline {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: #C8D8E8;
  text-align: center;
  line-height: 1.85;
  margin-bottom: var(--sp-3);
  opacity: 1;
}

/* --- Cover bottom / CTA --- */

.book__cover-bottom {
  text-align: center;
  padding-bottom: var(--sp-1);
  flex-shrink: 0;
}

.book__publisher {
  font-family: var(--font-cinzel);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C4A45A;
  opacity: 0.7;
  margin-bottom: var(--sp-3);
}

.book__cta {
  background: #C4A45A !important;
  color: #0D1B2A !important;
  font-family: 'Cinzel', serif !important;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 12px 24px !important;
  width: 100% !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 50 !important;
  position: relative !important;
  border-radius: 1px;
  cursor: pointer !important;
  border: none !important;
  transition: opacity 0.2s, transform 0.15s;
}
.book__cta:hover { opacity: 0.88 !important; transform: translateY(-1px); }

.book__free-note {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  color: #C4A45A;
  opacity: 0.7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* Page under the cover (visible after open animation) */
.book__first-page {
  position: absolute;
  left: 32px; /* spine width */
  top: 0;
  bottom: 0;
  width: 360px;
  background: var(--page-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  padding: 40px;
  border-radius: 0 2px 2px 0;
}

.book__first-page-content {
  text-align: center;
}

.book__first-page-content p {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.8;
}

/* -------------------------------------------------------
   PAGE SPREADS
   ------------------------------------------------------- */

.spread-section {
  padding: var(--sp-12) 0;
  background: var(--page-white);
}

.spread {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--sp-4);
  gap: 0;
}

/* Gutter line between pages */
.spread__gutter {
  background: var(--rule-page);
  position: relative;
}

/* Inner shadow on gutter */
.spread__gutter::before,
.spread__gutter::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
}
.spread__gutter::before {
  left: 1px;
  background: linear-gradient(to right, rgba(28,25,23,0.06), transparent);
}
.spread__gutter::after {
  right: 1px;
  background: linear-gradient(to left, rgba(28,25,23,0.06), transparent);
}

.spread__page {
  background: var(--page-white);
  padding: var(--sp-6) var(--sp-8);
  position: relative;
}

.spread__page--verso {
  padding-right: var(--sp-6);
}
.spread__page--recto {
  padding-left: var(--sp-6);
}

.spread__page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-6);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule-page);
}

.spread__page--verso .spread__page-footer {
  justify-content: flex-start;
}

.spread__page--recto .spread__page-footer {
  justify-content: flex-end;
}

.spread__page h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  margin-bottom: var(--sp-4);
  line-height: 1.2;
}

.spread__page h3 em {
  font-style: italic;
}

.spread__page p {
  font-size: 16px;
  line-height: 2.0;
  margin-bottom: var(--sp-3);
  color: var(--ink);
}

.spread__page p strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

/* Process steps (Roman numerals) */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-top: var(--sp-4);
}

.process-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--sp-2);
  align-items: start;
}

.process-step__numeral {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--ink-muted);
  font-weight: 400;
  padding-top: 1px;
}

.process-step__content h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.process-step__content p {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.75;
  margin: 0;
}

/* Pace options */
.pace-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--sp-4);
}

.pace-option {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--rule-page);
}

.pace-option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pace-option__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.pace-option__meta {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.pace-option__desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.8;
  margin: 0;
}

/* -------------------------------------------------------
   MEMOIR SAMPLE PAGE
   ------------------------------------------------------- */

.memoir-sample-section {
  background: var(--page-cream);
  padding: var(--sp-12) var(--sp-4);
  border-top: 1px solid var(--rule-page);
  border-bottom: 1px solid var(--rule-page);
}

.memoir-page {
  max-width: 620px;
  margin: 0 auto;
  background: var(--page-white);
  border-left: 3px solid var(--rule-gold);
  padding: 56px 48px;
  position: relative;
}

/* Top and bottom page edges */
.memoir-page::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--rule-page);
  margin-bottom: 40px;
}

.memoir-page::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--rule-page);
  margin-top: 40px;
}

.memoir-page__chapter {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.memoir-page__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
}

.memoir-page__meta-rule {
  flex: 1;
  height: 1px;
  background: var(--rule-page);
}

.memoir-page__prose {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 2.0;
  color: var(--ink);
}

.memoir-page__prose p + p {
  margin-top: var(--sp-3);
}

.memoir-page__separator {
  width: 100%;
  height: 1px;
  background: var(--rule-page);
  margin: var(--sp-6) 0;
}

.memoir-page__attribution {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  padding-top: var(--sp-3);
}

.memoir-page__attr-col h5 {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.memoir-page__attr-col p {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-light);
  line-height: 1.7;
  margin: 0;
}

.memoir-sample-caption {
  text-align: center;
  margin-top: var(--sp-6);
}

.memoir-sample-caption p {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 6px;
}

.memoir-sample-caption small {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------
   WHATSAPP CHAT DEMO
   ------------------------------------------------------- */

.chat-section {
  background: var(--page-white);
  padding: var(--sp-12) var(--sp-4);
}

.chat-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: var(--sp-2);
}

.chat-section .subtitle {
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-light);
  font-size: 16px;
  margin-bottom: var(--sp-8);
}

.chat-phone {
  max-width: 420px;
  margin: 0 auto;
  background: #e5ddd5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(28,25,23,0.12);
}

.chat-phone__header {
  background: #075e54;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.chat-phone__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.chat-phone__info {
  flex: 1;
}

.chat-phone__name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.chat-phone__status {
  font-family: var(--font-ui);
  font-size: 11px;
  opacity: 0.8;
  margin-top: 2px;
}

.chat-body {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 480px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Crect width='400' height='400' fill='%23e5ddd5'/%3E%3C/svg%3E");
}

.chat-msg {
  max-width: 82%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.chat-msg.chat-msg--visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-msg--received {
  align-self: flex-start;
}

.chat-msg--sent {
  align-self: flex-end;
}

.chat-msg--system {
  align-self: flex-start;
  max-width: 88%;
}

.chat-bubble {
  padding: 8px 12px 6px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.5;
  position: relative;
}

.chat-msg--received .chat-bubble {
  background: white;
  border-radius: 0 8px 8px 8px;
  color: #111;
}

.chat-msg--sent .chat-bubble {
  background: #dcf8c6;
  border-radius: 8px 0 8px 8px;
  color: #111;
}

.chat-msg--system .chat-bubble {
  background: white;
  border-radius: 0 8px 8px 8px;
  color: #111;
  border-left: 3px solid #075e54;
}

.chat-time {
  font-size: 10px;
  color: #999;
  float: right;
  margin-left: 8px;
  margin-top: 2px;
}

.chat-result-bubble {
  background: #f0f8f5;
  border: 1px solid rgba(7, 94, 84, 0.15);
}

.chat-result-title {
  font-weight: 700;
  color: #075e54;
  margin-bottom: 4px;
}

.chat-result-excerpt {
  font-style: italic;
  color: #333;
}

.chat-result-footer {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.chat-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
  flex-wrap: wrap;
}

.chat-stat {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.chat-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1px;
}

/* -------------------------------------------------------
   PRICING COLUMNS
   ------------------------------------------------------- */

.pricing-section {
  background: var(--page-white);
  padding: var(--sp-12) var(--sp-4);
}

.pricing-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max-content);
  margin: 0 auto;
  border: 1px solid var(--rule-page);
  border-radius: 2px;
  overflow: hidden;
}

.pricing-col {
  padding: var(--sp-6) var(--sp-4);
  border-right: 1px solid var(--rule-page);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-col:last-child { border-right: none; }

.pricing-col--featured {
  background: var(--page-cream);
}

.pricing-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--page-white);
  padding: 4px 12px;
  white-space: nowrap;
}

.pricing-col__edition {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--sp-1);
}

.pricing-col__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}

.pricing-col__tagline {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-light);
  margin-bottom: var(--sp-4);
}

.pricing-col__price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing-col__amount {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}

.pricing-col__currency {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  color: var(--ink-light);
  align-self: flex-start;
  margin-top: 6px;
}

.pricing-col__interval {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-4);
}

.pricing-divider {
  width: 100%;
  height: 1px;
  background: var(--rule-page);
  margin: var(--sp-4) 0;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: var(--sp-6);
}

.pricing-features li {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-light);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ink-muted);
  font-size: 12px;
  top: 1px;
}

.pricing-col--featured .pricing-features li { color: var(--ink); }
.pricing-col--featured .pricing-features li::before { color: var(--ink); }

.pricing-col .btn {
  width: 100%;
  font-size: 13px;
}

/* -------------------------------------------------------
   3D BOOK OPEN ANIMATION
   ------------------------------------------------------- */

/* Page stack — simulates book thickness under the cover */
.book__page-stack {
  position: absolute;
  left: 36px;
  top: 6px;
  width: calc(100% - 36px);
  height: 100%;
  background: #EDE5D5;
  border-radius: 0 4px 4px 0;
  border: 0.5px solid #C0B090;
}

.book__page-stack-edge:nth-child(1) {
  position: absolute;
  top: 3px;
  left: -3px;
  right: -1px;
  bottom: -3px;
  background: #E5DDD0;
  border-radius: 0 4px 4px 0;
  border: 0.5px solid #B8A888;
  z-index: -1;
}
.book__page-stack-edge:nth-child(2) {
  position: absolute;
  top: 6px;
  left: -6px;
  right: -1px;
  bottom: -6px;
  background: #DDD5C8;
  border-radius: 0 4px 4px 0;
  border: 0.5px solid #B0A080;
  z-index: -2;
}
.book__page-stack-edge:nth-child(3) {
  position: absolute;
  top: 9px;
  left: -9px;
  right: -1px;
  bottom: -9px;
  background: #D5CEC0;
  border-radius: 0 4px 4px 0;
  border: 0.5px solid #A89878;
  z-index: -3;
}

/* Open page revealed under cover */
.book__open-page {
  position: absolute;
  left: 36px;
  top: 0;
  width: calc(100% - 36px);
  height: 100%;
  background: #FDFBF7;
  border-radius: 0 4px 4px 0;
  border: 0.5px solid #D8D0C0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.book__open-page.revealed {
  opacity: 1;
}

.book__open-page-shadow {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.08));
  border-radius: 0 3px 3px 0;
  pointer-events: none;
}

.book__open-page-content {
  text-align: center;
}

.book__open-chapter-num {
  font-family: var(--font-cinzel);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #8A7A60;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.book__open-chapter-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  font-style: italic;
  color: #1C1208;
  line-height: 1.25;
  margin-bottom: 16px;
}

.book__open-rule {
  width: 32px;
  height: 0.5px;
  background: #C4A45A;
  margin: 16px auto;
}

.book__open-epigraph {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: #8A7A60;
  line-height: 1.7;
}

/* Fixed spine for 3D wrap */
.book__spine-3d {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 100%;
  background: #0A1520;
  border-radius: 2px 0 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border-right: 1px solid #1E3048;
}

.book__spine-3d .book__spine-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #C4A45A;
  opacity: 0.85;
  white-space: nowrap;
}

.pricing-footnote {
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-muted);
  margin-top: var(--sp-6);
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
}

/* ── 3D BOOK SPREAD WRAPPER ── */
.book-spread-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 960px;
}

/* Left hardcover back board */
.bsw-cover-left {
  position: absolute;
  left: -28px; top: 8px; bottom: -8px; width: 28px;
  background: #0D1B2A;
  border-radius: 3px 0 0 3px;
  z-index: 1;
}
.bsw-cover-left::after {
  content: '';
  position: absolute;
  right: 0; top: 10px; bottom: 10px; width: 1px;
  background: #C4A45A; opacity: .3;
}

/* Left page stack */
.bsw-pages-left {
  position: absolute;
  left: -18px; top: 3px; bottom: -3px; width: 18px;
  z-index: 2; overflow: hidden;
}
.bsw-pl { position: absolute; top: 0; bottom: 0; }
.bsw-pl:nth-child(1) { left:0; right:13px; background:#EDE5D5; }
.bsw-pl:nth-child(2) { left:2px; right:11px; background:#E8DDD0; }
.bsw-pl:nth-child(3) { left:4px; right:9px; background:#E3D8CB; }
.bsw-pl:nth-child(4) { left:6px; right:7px; background:#DDD2C5; }
.bsw-pl:nth-child(5) { left:8px; right:5px; background:#D8CEC0; }
.bsw-pl:nth-child(6) { left:10px; right:0; background:#EDE5D5; }
.bsw-pl::after { content:''; position:absolute; right:0; top:0; bottom:0; width:.5px; background:rgba(150,130,100,0.3); }

/* Spine */
.bsw-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 22px;
  background: linear-gradient(to right, #091420, #142030, #0D1B2A);
  z-index: 20;
  display: flex; align-items: center; justify-content: center;
  border-radius: 1px 0 0 1px;
}
.bsw-spine::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to right, #1A2E48, #243850);
}
.bsw-spine-txt {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Cinzel', serif;
  font-size: 8px; letter-spacing: .14em;
  color: #C4A45A; opacity: .8;
  white-space: nowrap;
}

/* Top edges with curve */
.bsw-top-edges {
  position: absolute;
  top: -14px; left: 22px; right: 0;
  height: 14px; z-index: 3; overflow: hidden;
}
.bsw-top-edges svg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; z-index: 10;
}
.bsw-te { position: absolute; left: 0; right: 0; height: 2px; }
.bsw-te:nth-child(1){top:0; background:#C8C0B0;}
.bsw-te:nth-child(2){top:2px; background:#D0C8B8;}
.bsw-te:nth-child(3){top:4px; background:#D8D0C0;}
.bsw-te:nth-child(4){top:6px; background:#DDD8C8;}
.bsw-te:nth-child(5){top:8px; background:#E3DDD0;}
.bsw-te:nth-child(6){top:10px; background:#EAE5D8;}
.bsw-te:nth-child(7){top:12px; background:#F0EBE0;}

/* Bottom edges with curve */
.bsw-bot-edges {
  position: absolute;
  bottom: -14px; left: 22px; right: 0;
  height: 14px; z-index: 3; overflow: hidden;
}
.bsw-bot-edges svg {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 100%; z-index: 10;
}
.bsw-be { position: absolute; left: 0; right: 0; height: 2px; }
.bsw-be:nth-child(1){bottom:0; background:#C8C0B0;}
.bsw-be:nth-child(2){bottom:2px; background:#D0C8B8;}
.bsw-be:nth-child(3){bottom:4px; background:#D8D0C0;}
.bsw-be:nth-child(4){bottom:6px; background:#DDD8C8;}
.bsw-be:nth-child(5){bottom:8px; background:#E3DDD0;}
.bsw-be:nth-child(6){bottom:10px; background:#EAE5D8;}
.bsw-be:nth-child(7){bottom:12px; background:#F0EBE0;}

/* The actual spread container */
.bsw-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-left: 22px;
  position: relative;
  z-index: 10;
  border: none !important;
  outline: none !important;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.10),
    0 16px 40px rgba(0,0,0,0.12),
    0 32px 64px rgba(0,0,0,0.08);
}

/* Narrow center gutter shadow */
.bsw-gutter {
  position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 32px;
  pointer-events: none; z-index: 30;
  background: linear-gradient(to right,
    rgba(0,0,0,0.16) 0%,
    rgba(0,0,0,0.07) 25%,
    rgba(0,0,0,0.01) 45%,
    rgba(255,255,255,0.03) 50%,
    rgba(0,0,0,0.01) 55%,
    rgba(0,0,0,0.07) 75%,
    rgba(0,0,0,0.16) 100%
  );
}
.bsw-vt {
  position: absolute; top: 0; left: 0; right: 0; height: 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), transparent);
  pointer-events: none; z-index: 20;
}
.bsw-vb {
  position: absolute; bottom: 0; left: 0; right: 0; height: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.05), transparent);
  pointer-events: none; z-index: 20;
}

/* Page overrides — remove ALL side borders */
.bsw-page-l {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: .5px solid rgba(185,170,145,0.35) !important;
  border-bottom: .5px solid rgba(185,170,145,0.35) !important;
  outline: none !important;
  box-shadow: inset -14px 0 22px rgba(0,0,0,0.07) !important;
  background-image: repeating-linear-gradient(
    transparent, transparent 31px,
    rgba(160,148,128,0.055) 31px,
    rgba(160,148,128,0.055) 32px
  ) !important;
  background-size: 100% 32px !important;
}
.bsw-page-r {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: .5px solid rgba(185,170,145,0.35) !important;
  border-bottom: .5px solid rgba(185,170,145,0.35) !important;
  outline: none !important;
  box-shadow: inset 14px 0 22px rgba(0,0,0,0.07) !important;
  background-image: repeating-linear-gradient(
    transparent, transparent 31px,
    rgba(160,148,128,0.055) 31px,
    rgba(160,148,128,0.055) 32px
  ) !important;
  background-size: 100% 32px !important;
}

/* Right page stack */
.bsw-pages-right {
  position: absolute;
  right: -18px; top: 3px; bottom: -3px; width: 18px;
  z-index: 2; overflow: hidden;
}
.bsw-pr { position: absolute; top: 0; bottom: 0; }
.bsw-pr:nth-child(1){right:0;left:13px;background:#EDE5D5;}
.bsw-pr:nth-child(2){right:2px;left:11px;background:#E8DDD0;}
.bsw-pr:nth-child(3){right:4px;left:9px;background:#E3D8CB;}
.bsw-pr:nth-child(4){right:6px;left:7px;background:#DDD2C5;}
.bsw-pr:nth-child(5){right:8px;left:5px;background:#D8CEC0;}
.bsw-pr:nth-child(6){right:10px;left:0;background:#EDE5D5;}
.bsw-pr::before { content:''; position:absolute; left:0; top:0; bottom:0; width:.5px; background:rgba(150,130,100,0.3); }

/* Right hardcover front board */
.bsw-cover-right {
  position: absolute;
  right: -28px; top: 8px; bottom: -8px; width: 28px;
  background: linear-gradient(to right, #0D1B2A, #162032);
  border-radius: 0 3px 3px 0;
  z-index: 1;
}
.bsw-cover-right::before {
  content: '';
  position: absolute;
  left: 1px; top: 10px; bottom: 10px; width: 1px;
  background: #C4A45A; opacity: .25;
}

/* Outer section padding to accommodate the 3D elements */
.book-spread-wrap-section {
  padding-left: 48px !important;
  padding-right: 48px !important;
}
