/* Chapter Shelf home — Coming Soon v2 (PR #49) */

:root {
  --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --home-bg: #06151a;
  --home-bg2: #0a242c;
  --home-light: #f3efe4;
  --home-accent: #d4b46a;
  --home-accent2: #efd79d;
  --home-teal: #2a6e62;
  --home-muted: rgb(243 239 228 / 0.66);
  --home-line: rgb(243 239 228 / 0.11);
}

.home-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--home-bg);
  color: var(--home-light);
  font-family: "Sora", system-ui, sans-serif;
}

.home-page a {
  color: inherit;
}

.home-back {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  font: 500 0.8rem/1.2 "Sora", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.7;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgb(6 21 26 / 0.45);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s var(--home-ease);
}

.home-back:hover,
.home-back:focus-visible {
  opacity: 1;
}

/* ---------- Chapter Shelf page ---------- */

.shelfpage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 48% at 50% 45%, rgb(42 110 98 / 0.22), transparent 68%),
    radial-gradient(50% 25% at 50% 100%, rgb(212 180 106 / 0.09), transparent 80%),
    linear-gradient(180deg, #092128 0%, #06151a 100%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 44px);
  background: linear-gradient(180deg, rgb(6 21 26 / 0.65), transparent);
  backdrop-filter: blur(2px);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.mark {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 14px rgb(212 180 106 / 0.13));
}

.concept-nav {
  display: flex;
  gap: 8px;
}

.concept-nav a {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgb(243 239 228 / 0.15);
  border-radius: 999px;
  font-size: 11px;
  text-decoration: none;
  color: rgb(243 239 228 / 0.55);
  transition: 0.25s var(--home-ease);
}

.concept-nav a:hover,
.concept-nav a[aria-current="page"] {
  border-color: rgb(212 180 106 / 0.7);
  color: var(--home-accent2);
  background: rgb(212 180 106 / 0.08);
}

.copy-left {
  position: relative;
  z-index: 8;
  width: min(560px, 88vw);
  padding-top: 20vh;
  margin-left: clamp(24px, 8vw, 110px);
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 7px 11px;
  border: 1px solid rgb(212 180 106 / 0.24);
  border-radius: 999px;
  color: var(--home-accent2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: rgb(6 21 26 / 0.35);
  backdrop-filter: blur(12px);
}

.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-accent);
  box-shadow: 0 0 16px rgb(212 180 106 / 0.75);
  animation: blink 2.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.brand-big {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(4.2rem, 9.6vw, 8.1rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--home-light);
}

.brand-big__thin {
  font-weight: 300;
  color: rgb(243 239 228 / 0.85);
}

.tagline {
  margin: 22px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
  color: var(--home-accent2);
  text-align: left;
}

.lede {
  margin: 14px 0 0;
  max-width: 490px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--home-muted);
  text-align: left;
  text-wrap: pretty;
}

/* ---------- floating chapter shelf ---------- */

.shelf-floor {
  position: absolute;
  right: -6%;
  bottom: 7%;
  width: 58%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(212 180 106 / 0.09), rgb(42 110 98 / 0.03) 44%, transparent 72%);
  filter: blur(18px);
}

.shelf-stage {
  position: absolute;
  right: -2vw;
  top: 50%;
  width: min(52vw, 760px);
  height: 72vh;
  transform: translateY(-47%);
  perspective: 1100px;
  transform-style: preserve-3d;
}

.chapter {
  --rx: 0deg;
  --ry: 0deg;
  position: absolute;
  width: clamp(170px, 18vw, 250px);
  height: clamp(235px, 27vw, 340px);
  padding: 22px;
  border: 1px solid rgb(243 239 228 / 0.12);
  border-radius: 22px;
  background: linear-gradient(155deg, rgb(20 62 67 / 0.74), rgb(7 24 29 / 0.78) 65%);
  backdrop-filter: blur(16px);
  box-shadow: 0 28px 80px rgb(0 0 0 / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.04);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--home-ease), border-color 0.4s var(--home-ease), opacity 0.4s var(--home-ease);
  overflow: hidden;
}

.chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 20% 0%, rgb(212 180 106 / 0.12), transparent 45%);
  pointer-events: none;
}

.chapter:hover {
  border-color: rgb(212 180 106 / 0.42);
}

.chapter.one {
  left: 5%;
  top: 18%;
  transform: rotateY(18deg) rotateZ(-4deg) translateZ(-50px);
  opacity: 0.62;
}

.chapter.two {
  left: 34%;
  top: 6%;
  transform: rotateY(-6deg) translateZ(85px);
  z-index: 3;
}

.chapter.three {
  left: 58%;
  top: 31%;
  transform: rotateY(-18deg) rotateZ(5deg) translateZ(-40px);
  opacity: 0.7;
}

.chapter .num {
  position: absolute;
  right: 17px;
  top: 16px;
  font-family: "Fraunces", Georgia, serif;
  color: rgb(243 239 228 / 0.2);
  font-size: 52px;
  line-height: 1;
}

.chapter .kicker {
  position: relative;
  color: var(--home-accent2);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chapter h3 {
  position: relative;
  margin: 58px 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3.1vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--home-light);
}

.chapter p {
  position: relative;
  margin: 0;
  color: rgb(243 239 228 / 0.52);
  font-size: 11px;
  line-height: 1.55;
}

.chapter .status {
  position: absolute;
  left: 22px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(243 239 228 / 0.62);
  font-size: 10px;
}

.chapter .status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(243 239 228 / 0.28);
}

.chapter.two .status i {
  background: var(--home-accent);
  box-shadow: 0 0 14px rgb(212 180 106 / 0.45);
}

.chapter .wave {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 53px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0.36;
}

.chapter .wave i {
  width: 2px;
  height: var(--h);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--home-accent2), rgb(212 180 106 / 0.2));
}

.chapter.one {
  animation: float1 7s ease-in-out infinite;
}

.chapter.two {
  animation: float2 6s ease-in-out infinite;
}

.chapter.three {
  animation: float3 8s ease-in-out infinite;
}

@keyframes float1 {
  50% { transform: rotateY(18deg) rotateZ(-2deg) translate3d(-7px, -10px, -50px); }
}

@keyframes float2 {
  50% { transform: rotateY(-3deg) rotateZ(1deg) translate3d(5px, -14px, 95px); }
}

@keyframes float3 {
  50% { transform: rotateY(-18deg) rotateZ(3deg) translate3d(8px, -8px, -40px); }
}

/* ---------- AI interpretation card (parked feature; renders only when enabled) ---------- */

.ai-card {
  position: relative;
  z-index: 8;
  max-width: 30rem;
  margin: 3.5rem auto 0;
  padding: 0 clamp(18px, 4vw, 44px);
}

.ai-card__details {
  border: 1px solid rgb(212 180 106 / 0.22);
  border-radius: 16px;
  background: rgb(6 21 26 / 0.55);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.3s var(--home-ease);
}

.ai-card__details[open] {
  border-color: rgb(212 180 106 / 0.45);
}

.ai-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.ai-card__summary::-webkit-details-marker {
  display: none;
}

.ai-card__kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-accent2);
}

.ai-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: rgb(243 239 228 / 0.85);
}

.ai-card__summary::after {
  content: "+";
  font-size: 1rem;
  line-height: 1;
  color: var(--home-accent);
  transition: transform 0.3s var(--home-ease);
}

.ai-card__details[open] .ai-card__summary::after {
  content: "×";
}

.ai-card__body {
  padding: 0 20px 18px;
  border-top: 1px solid rgb(243 239 228 / 0.08);
}

.ai-card__hint {
  margin: 14px 0 0;
  color: rgb(243 239 228 / 0.6);
  font-size: 0.85rem;
  line-height: 1.55;
}

.ai-card__form {
  margin: 14px 0 0;
}

.ai-card__button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--home-accent);
  border-radius: 999px;
  background: transparent;
  color: var(--home-accent);
  font: 600 0.8rem/1 "Sora", system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ai-card__button:hover {
  background: var(--home-accent);
  color: #152019;
}

.ai-card__button:disabled {
  opacity: 0.6;
  cursor: default;
}

.ai-card__result {
  margin: 14px 0 0;
  color: rgb(243 239 228 / 0.85);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- responsive ---------- */

html {
  scroll-behavior: smooth;
}

@media (max-width: 900px) {
  .shelfpage {
    min-height: 1160px;
  }

  .copy-left {
    padding-top: 15vh;
    margin: 0 auto;
    text-align: center;
  }

  .copy-left .tagline,
  .copy-left .lede {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .shelf-stage {
    top: 720px;
    right: 50%;
    width: 92vw;
    height: 420px;
    transform: translateX(50%);
  }

  .chapter {
    width: 190px;
    height: 260px;
  }

  .chapter.one {
    left: 6%;
    top: 17%;
  }

  .chapter.two {
    left: 36%;
    top: 3%;
  }

  .chapter.three {
    left: 66%;
    top: 20%;
  }
}

@media (max-width: 560px) {
  .shelfpage {
    min-height: 1220px;
  }

  .shelf-stage {
    top: 760px;
    width: 100vw;
  }

  .chapter {
    width: 160px;
    height: 235px;
    padding: 18px;
  }

  .chapter.one {
    left: -8%;
  }

  .chapter.two {
    left: 29%;
  }

  .chapter.three {
    left: 66%;
  }

  .chapter h3 {
    margin-top: 50px;
  }

  .chapter .num {
    font-size: 42px;
  }

  .chapter .wave {
    left: 18px;
    right: 18px;
  }

  .chapter .status {
    left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Consent banner (bibleaudible#43) — matches sanctuary palette. */
.consent-banner {
  position: fixed;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  max-width: 34rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border: 1px solid rgb(212 180 106 / 0.35);
  border-radius: 12px;
  background: #0d2a33;
  color: #f3efe4;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
  font-size: 0.92rem;
  line-height: 1.5;
}

.consent-banner__copy {
  margin: 0 0 0.75rem;
  color: rgb(243 239 228 / 0.9);
}

.consent-banner__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.consent-banner__actions button {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #d4b46a;
  background: transparent;
  color: #d4b46a;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.consent-banner__actions button:hover {
  background: #d4b46a;
  color: #06151a;
}
