/* ===========================================================================
   TEASER GATE — added 2026-05-20
   Lock styling for sidebar items past chapter 6, buy modal, sticky CTA bar,
   inline chapter hero images, and the full "locked chapter" page treatment.
   =========================================================================== */

.chapter-hero-img {
  margin: 0 0 32px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-warm, #E3D4C7);
  box-shadow: 0 12px 36px -16px rgba(80, 50, 35, 0.18);
}
.chapter-hero-img img { display: block; width: 100%; height: auto; margin: 0; }
@media (max-width: 720px) { .chapter-hero-img { margin: 0 0 24px; } }

.sidebar-item.is-locked { opacity: 0.68; position: relative; }
.sidebar-item.is-locked:hover { opacity: 1; background: rgba(183, 110, 121, 0.06); }
.sidebar-item.is-locked .sidebar-item-title { color: var(--ink-soft, #5a5040); }
.sidebar-lock-icon {
  width: 13px; height: 13px;
  margin-left: auto;
  color: var(--rose-gold, #B76E79);
  opacity: 0.55;
  flex-shrink: 0;
}
.sidebar-item.is-locked:hover .sidebar-lock-icon { opacity: 1; }

.teaser-sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: #1d1813;
  color: #FAFAF7;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(183, 110, 121, 0.4);
  box-shadow: 0 -8px 28px -8px rgba(0,0,0,0.35);
  font-size: 14px;
}
.teaser-bar-label strong { color: #D4A574; font-weight: 600; letter-spacing: 0.05em; }
.teaser-bar-label span { color: rgba(250,250,247,0.78); }
.teaser-bar-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #B76E79;
  color: #FAFAF7 !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s ease;
}
.teaser-bar-btn:hover { background: #C99070; transform: translateY(-1px); }
@media (max-width: 720px) {
  .teaser-sticky-bar { padding: 12px 16px; gap: 12px; flex-direction: column; }
  .teaser-bar-label { font-size: 12px; text-align: center; }
  .teaser-bar-btn { width: 100%; text-align: center; }
}
body { padding-bottom: 76px; }
@media (max-width: 720px) { body { padding-bottom: 120px; } }

.locked-chapter {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 60px 0;
}
.locked-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: var(--cream, #F5EFE6);
  border: 1px solid var(--cream-warm, #E3D4C7);
  padding: 48px 36px;
  box-shadow: 0 28px 60px -24px rgba(80, 50, 35, 0.25);
}
.locked-badge {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(183, 110, 121, 0.10);
  display: flex; align-items: center; justify-content: center;
}
.locked-icon { width: 28px; height: 28px; color: var(--rose-gold, #B76E79); }
.locked-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-gold, #B76E79);
  margin-bottom: 12px;
}
.locked-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--ink, #2C2C2C);
  margin: 0 0 14px;
  line-height: 1.15;
}
.locked-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft, #5a5040);
  margin: 0 0 28px;
}
.locked-pricing {
  border-top: 1px solid var(--cream-warm, #E3D4C7);
  padding-top: 28px;
  margin-bottom: 24px;
}
.locked-price-amount {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 56px;
  font-style: italic;
  color: var(--rose-gold, #B76E79);
  display: block;
  line-height: 1;
}
.locked-price-note {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft, #5a5040);
  margin-top: 10px;
}
.locked-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
  display: inline-block;
}
.locked-features li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 14px;
  color: var(--ink, #2C2C2C);
}
.locked-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose-gold, #B76E79);
  opacity: 0.7;
}
.locked-actions { display: flex; flex-direction: column; gap: 10px; }
.locked-buy-btn {
  display: block;
  padding: 16px 24px;
  background: var(--rose-gold, #B76E79);
  color: #FAFAF7 !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.locked-buy-btn:hover { background: #C99070; transform: translateY(-1px); }
.locked-back-btn {
  display: block;
  padding: 12px 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft, #5a5040) !important;
  text-decoration: none;
  border: 1px solid var(--cream-warm, #E3D4C7);
}
.locked-back-btn:hover { border-color: var(--rose-gold, #B76E79); color: var(--rose-gold, #B76E79) !important; }

.buy-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.buy-modal.is-open { display: flex; }
.buy-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 24, 19, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.buy-modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  background: var(--cream, #F5EFE6);
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
  animation: bm-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bm-enter {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.buy-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink-soft, #5a5040);
  padding: 8px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.buy-modal-close:hover { background: var(--cream-warm, #E3D4C7); color: var(--ink, #2C2C2C); }
.buy-modal-close svg { width: 20px; height: 20px; }
.buy-modal-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-gold, #B76E79);
  margin-bottom: 10px;
}
.buy-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--ink, #2C2C2C);
  margin: 0 0 14px;
  line-height: 1.15;
}
.buy-modal-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft, #5a5040);
  margin: 0 0 22px;
}
.buy-modal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  text-align: left;
}
.buy-modal-features li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 13px;
  color: var(--ink, #2C2C2C);
}
.buy-modal-features li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 4px;
  color: var(--rose-gold, #B76E79);
  font-weight: 600;
}
.buy-modal-price {
  border-top: 1px solid var(--cream-warm, #E3D4C7);
  padding-top: 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}
.buy-modal-price .amt {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 42px;
  font-style: italic;
  color: var(--rose-gold, #B76E79);
}
.buy-modal-price .note {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft, #5a5040);
}
.buy-modal-buy {
  display: block;
  padding: 14px 22px;
  background: var(--rose-gold, #B76E79);
  color: #FAFAF7 !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.25s ease;
}
.buy-modal-buy:hover { background: #C99070; }
.buy-modal-dismiss {
  display: block;
  width: 100%;
  padding: 10px 22px;
  background: transparent;
  border: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft, #5a5040);
  cursor: pointer;
}
.buy-modal-dismiss:hover { color: var(--ink, #2C2C2C); text-decoration: underline; }
