/* ============================================================
   Rapt — website study preview
   Design sandbox for the interactive trial flow.

   Palette and type are sampled from the July 2026 app build so the
   web preview reads as the same product: Inter for UI, Source Serif 4
   for everything meant to be *read*, gold-railed "why this" callouts,
   and the sand / periwinkle card families from the study part reader.
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(assets/fonts/source-serif-4-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(assets/fonts/source-serif-4-latin-italic.woff2) format('woff2');
}

/* ---------- tokens ---------- */
:root {
  /* carried over from the marketing site */
  --navy:        #1f3a76;
  --navy-deep:   #1d3368;
  --periwinkle:  #a9b5d8;
  --periwinkle-2:#d5def5;
  --periwinkle-3:#7d8cba;
  --cream:       #fefbef;   /* hero backdrop       */
  --cream-2:     #f8f1e1;   /* download panel      */
  --cream-3:     #fdfcf9;   /* newsletter card     */
  --gold:        #f0cc7f;
  --gold-ink:    #7a613d;
  --sage:        #bccdc1;
  --sage-ink:    #505f58;
  --stone:       #8f8a78;
  --stone-2:     #676358;

  /* sampled from the app's study reader */
  --ivory:       #fcf8f0;   /* reading page ground        */
  --sand:        #f4ebd8;   /* Scripture card             */
  --periwinkle-card: #e4ecff; /* published-work card      */
  --why-bg:      #f5f0e4;   /* "why this ..." callout     */
  --gold-rail:   #c9a44e;
  --gold-label:  #9a7d31;
  --ink:         #1a2747;   /* drop caps, Scripture body  */
  --ink-soft:    #52639c;   /* published-work titles      */
  --pill-track:  #d4ddf5;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --shell: 1240px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ivory);
  overflow-x: clip;
  font-family: var(--sans);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4, figure { margin: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.shell { width: min(var(--shell), calc(100vw - 80px)); margin: 0 auto; }

/* ============================================================
   Masthead
   ============================================================ */
.bar {
  border-bottom: 1px solid #e7e0cf;
  background: var(--cream);
}
.bar .shell { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.bar nav { display: flex; gap: 34px; }
.bar nav a { font-weight: 700; font-size: 17px; color: var(--stone); transition: color .18s; }
.bar nav a:hover { color: var(--navy); }

/* ============================================================
   Hero — the ask
   ============================================================ */
.hero { background: var(--cream); padding: 96px 0 104px; text-align: center; }
.hero h1 {
  font-size: 62px; font-weight: 800; line-height: 1.06;
  letter-spacing: -0.02em; color: var(--navy);
  max-width: 15ch; margin: 0 auto;
}
.hero h1 .soft { color: var(--stone); }
.hero .sub {
  font-family: var(--serif); font-size: 25px; line-height: 1.5;
  color: var(--stone-2); max-width: 46ch; margin: 26px auto 0;
}

.ask { max-width: 780px; margin: 46px auto 0; }
.ask-field {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 2px solid #e7ddc4; border-radius: 999px;
  padding: 9px 9px 9px 30px;
  transition: border-color .18s, box-shadow .18s;
}
.ask-field:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(31,58,118,.12); }
.ask-field input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--serif); font-size: 21px; color: var(--navy);
  padding: 12px 0;
}
.ask-field input::placeholder { color: #a8a293; font-style: italic; }

.btn {
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 18px; white-space: nowrap;
  padding: 17px 30px; background: var(--navy); color: #fff;
  transition: filter .18s, transform .18s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: var(--navy); }

.examples {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 22px;
}
.examples span { font-size: 15px; color: var(--stone); align-self: center; margin-right: 4px; }
.chip {
  border: 1px solid #e2d9c4; background: transparent; border-radius: 999px;
  padding: 9px 18px; font-size: 15px; color: var(--stone-2); cursor: pointer;
  font-family: var(--serif); transition: background .18s, border-color .18s, color .18s;
}
.chip:hover { background: #fff; border-color: var(--navy); color: var(--navy); }

.hero-note { margin-top: 30px; font-size: 14px; color: #a8a293; }

/* Turnstile renders interaction-only, so this is usually an empty box that
   only takes space when Cloudflare actually needs to challenge someone. */
.turnstile { display: flex; justify-content: center; margin-top: 18px; }
.turnstile:empty { margin-top: 0; }

.ask-error {
  margin-top: 18px; font-size: 16px; line-height: 1.5;
  color: #9a3d3d; max-width: 52ch; margin-left: auto; margin-right: auto;
  display: none;
}
.ask-error[data-on] { display: block; }

/* ============================================================
   Generating
   ============================================================ */
.gen { min-height: 100vh; padding: 64px 0 112px; display: none; background: var(--ivory); }
.gen[data-on] { display: block; }
.gen-inner { max-width: 620px; min-height: calc(100vh - 106px); margin: 0 auto; display: flex; flex-direction: column; }
.gen-head { text-align: center; }
.gen-ornament { display: block; width: 74px; height: 74px; margin: 0 auto; animation: gen-rotate 26s linear infinite; transform-origin: center; }
@keyframes gen-rotate { to { transform: rotate(360deg); } }
.gen-preline { margin-top: 18px; color: var(--gold-label); font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gen-title { width: 100%; margin: 8px auto 0; max-width: 24ch; color: var(--navy); font-family: var(--serif); font-size: clamp(34px, 5vw, 46px); font-weight: 600; line-height: 1.08; overflow-wrap: anywhere; }
.gen-summary { display: none; width: 100%; max-width: 54ch; margin: 12px auto 0; color: var(--stone-2); font-family: var(--serif); font-size: 17px; font-style: italic; line-height: 1.52; }
.gen-summary[data-on] { display: block; }
.gen-fleuron { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px auto 0; color: var(--gold-rail); font-size: 15px; }
.gen-fleuron::before, .gen-fleuron::after { content: ''; width: 54px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.gen-fleuron::after { background: linear-gradient(90deg, currentColor, transparent); }
.gen-contents { flex: 1; min-height: 0; margin-top: 26px; }

.stages { list-style: none; padding: 0; margin: 0; text-align: left; }
.stages li { padding: 9px 0 0; color: #bcb097; }
.stage-row { display: flex; align-items: baseline; gap: 14px; }
.stage-numeral { flex: 0 0 30px; color: inherit; font-family: var(--serif); font-size: 15px; text-align: right; transition: color .5s ease; }
.stage-name { color: inherit; font-family: var(--serif); font-size: 21px; line-height: 1.18; transition: color .5s ease; }
.stage-name i, .gen-progress i { display: inline-block; width: 1.5px; height: 18px; margin-left: 3px; vertical-align: -3px; background: var(--stone-2); opacity: 0; }
.stages li p { max-height: 0; margin: 0 0 0 44px; overflow: hidden; opacity: 0; color: var(--stone-2); font-family: var(--serif); font-size: 15px; font-style: italic; line-height: 1.5; transition: max-height .45s ease, opacity .45s ease, margin .45s ease; }
.stage-rule { display: block; position: relative; height: 1px; margin: 9px 0 0 44px; background: rgba(188,176,151,.34); }
.stage-rule::after { content: ''; display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gold-rail), var(--gold-label)); transition: width .8s ease; }
.stages li[data-state="done"] .stage-numeral, .stages li[data-state="active"] .stage-numeral { color: var(--gold-label); }
.stages li[data-state="done"] .stage-name, .stages li[data-state="active"] .stage-name { color: #3c3527; }
.stages li[data-state="active"] .stage-name { font-weight: 600; }
.stages li[data-state="active"] .stage-name i { opacity: 1; animation: gen-blink 1.15s steps(1) infinite; }
.stages li[data-state="active"] p { max-height: 48px; margin-top: 7px; opacity: 1; }
.stages li[data-state="done"] .stage-rule::after, .stages li[data-state="active"] .stage-rule::after { width: 100%; }
@keyframes gen-blink { 50% { opacity: 0; } }

.gen-outline { text-align: left; }
.gen-outline-eyebrow { margin: 0 0 4px; color: var(--gold-label); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.gen-outline-part { padding-top: 15px; }
.gen-outline-row { display: flex; align-items: baseline; gap: 15px; }
.gen-outline-num { flex: 0 0 24px; color: var(--gold-label); font-family: var(--serif); font-size: 18px; text-align: right; }
.gen-outline-title { color: #3c3527; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.18; }
.gen-outline-summary { margin: 5px 0 0 39px; color: var(--stone-2); font-family: var(--serif); font-size: 15px; font-style: italic; line-height: 1.5; }
.gen-outline-rule { height: 1px; margin: 14px 0 0 39px; background: rgba(188,176,151,.3); }
.gen-foot { margin-top: 24px; text-align: center; }
.gen-progress { margin: 0 28px; text-align: left; }
.gen-progress p { display: flex; gap: 13px; margin: 0 0 9px; color: #bcb097; font-family: var(--serif); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.gen-progress p b { color: var(--gold-label); font-weight: 600; }
.gen-progress p span { color: var(--stone-2); font-size: 14px; font-style: italic; text-transform: none; letter-spacing: 0; }
.gen-progress p span i { opacity: 1; height: 13px; vertical-align: -2px; animation: gen-blink 1.15s steps(1) infinite; }
.gen-progress-track { display: block; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(188,176,151,.45); }
.gen-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-rail), var(--gold-label)); transition: width .7s ease; }
.gen-colophon { margin: 0; color: var(--stone-2); font-family: var(--serif); font-size: 15px; font-style: italic; line-height: 1.5; }
.gen-outline:not([hidden]) ~ * .gen-colophon { display: none; }

/* On a wide web canvas, the outline should not replace the pipeline: both
   are useful evidence that a real study is being assembled. A narrow screen
   retains the app's sequential handoff from stages to contents. */
@media (min-width: 900px) {
  .gen[data-outline] .gen-inner { max-width: 1120px; }
  .gen[data-outline] .gen-head { max-width: 660px; margin: 0 auto; }
  .gen[data-outline] .gen-contents {
    display: grid;
    grid-template-columns: minmax(330px, .82fr) minmax(460px, 1.18fr);
    align-items: start;
    gap: clamp(58px, 7vw, 120px);
    margin-top: 44px;
  }
  .gen[data-outline] .stages { padding-top: 10px; }
  .gen[data-outline] .gen-outline {
    padding: 8px 0 8px clamp(42px, 5vw, 76px);
    border-left: 1px solid rgba(188,176,151,.42);
  }
  .gen[data-outline] .gen-foot { max-width: 1120px; margin: 34px auto 0; }
  .gen[data-outline] .gen-progress { display: none; }
}

@media (max-width: 899px) {
  .gen[data-outline] .stages { display: none; }
  .gen[data-outline] .gen-contents { margin-top: 30px; }
  .gen-head { width: 100%; }
  .gen-title, .gen-summary { max-width: 100%; }
  .gen-progress { margin-left: 20px; margin-right: 20px; }
}

/* ============================================================
   Result — two-column reader
   ============================================================ */
.result { display: none; padding: 0 0 120px; }
.result[data-on] { display: block; }

.result-head { background: var(--cream); padding: 72px 0 64px; border-bottom: 1px solid #ece4d2; }
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-label);
}
.result-head h2 {
  font-size: 52px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08;
  margin-top: 16px; max-width: 18ch;
}
.result-head .summary {
  font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1.55;
  color: var(--stone-2); max-width: 52ch; margin-top: 22px;
}
.result-head .from {
  margin-top: 26px; font-size: 16px; color: var(--stone);
}
.result-head .from b { color: var(--navy); font-weight: 600; }

.reader { display: grid; grid-template-columns: 336px 1fr; gap: 72px; padding-top: 56px; align-items: start; }
/* Without this the 1fr column resolves to the deck's max-content width
   (every card side by side) instead of the track it has to scroll in. */
.reader > * { min-width: 0; }

/* ---- left rail ---- */
.rail { position: sticky; top: 32px; }
.rail h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 18px;
}
.rail ol { list-style: none; padding: 0; margin: 0; }
.rail li { margin-bottom: 6px; }
.rail button {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 15px 16px; border-radius: 14px; display: flex; gap: 14px; align-items: flex-start;
  transition: background .16s;
}
.rail button:hover { background: #f4eddc; }
.rail li[data-current] button { background: var(--navy); }
.rail .num {
  font-size: 13px; font-weight: 700; color: var(--stone); flex: none;
  width: 20px; padding-top: 2px;
}
.rail .label { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--navy); }
.rail .state { display: block; font-size: 12.5px; font-weight: 500; color: var(--stone); margin-top: 4px; }
.rail li[data-current] .label,
.rail li[data-current] .num { color: #fff; }
.rail li[data-current] .state { color: var(--periwinkle); }
.rail li[data-locked] .label { color: var(--stone); }
.rail li[data-locked][data-current] .label { color: #fff; }

.rail-cta { margin-top: 26px; padding-top: 26px; border-top: 1px solid #e7ddc4; }
.rail-cta p { font-size: 14px; line-height: 1.5; color: var(--stone-2); margin-bottom: 14px; }

/* ---- part body ---- */
/* Breadcrumb, not a headline — the deck's first card carries the part
   title, the way the app's part reader does. */
.part-head { margin-bottom: 22px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.part-head .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-label);
}
.part-head h3 {
  font-size: 19px; font-weight: 600; letter-spacing: -0.005em; color: var(--stone);
}

/* ============================================================
   Card deck — the app's part reader, on the web.
   Horizontal scroll-snap gives native swipe on touch; arrows,
   keys and segment taps drive it everywhere else. The deck is
   sized to the showing card so nothing nests a vertical scroller.
   ============================================================ */
.deck-head { margin-bottom: 20px; }
.segments { display: flex; gap: 6px; }
.segments button {
  flex: 1; height: 5px; padding: 0; border: 0; border-radius: 3px;
  background: #e3dbc9; cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.segments button:hover { transform: scaleY(1.6); }
.segments button[data-done] { background: #c3b99f; }
.segments button[aria-current="true"] { background: var(--navy); }

/* The wrapper carries the animated height; the scroller keeps a constant
   one (the tallest card). Resizing a mandatory-snap scroll container makes
   Chrome re-snap and drag the deck back a card, so it must not change. */
.deck-clip {
  overflow: hidden;
  transition: height .35s cubic-bezier(.3, .7, .3, 1);
}
.deck {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none;
}
.deck::-webkit-scrollbar { display: none; }
.deck:focus-visible { outline-offset: 8px; }
.deck-track { display: flex; align-items: flex-start; }
/* No scroll-snap-stop here: it forces a halt at every snap point, which
   blocks a segment tap from jumping more than one card. */
.deck-card { flex: 0 0 100%; scroll-snap-align: start; }
.deck-card > .card { margin-top: 0; }

.deck-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-top: 20px;
}
.deck-label {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-label);
}
.deck-nav { display: flex; align-items: center; gap: 12px; }
.deck-count { font-size: 14px; font-weight: 500; color: var(--stone); font-variant-numeric: tabular-nums; }
.deck-arrow {
  width: 46px; height: 46px; border-radius: 50%; padding: 0;
  border: 1.5px solid #ded4bc; background: transparent; color: var(--navy);
  cursor: pointer; display: grid; place-items: center;
  transition: background .18s, border-color .18s, opacity .18s;
}
.deck-arrow svg { width: 20px; height: 20px; }
.deck-arrow:hover:not([disabled]) { background: #fff; border-color: var(--navy); }
.deck-arrow[disabled] { opacity: .3; cursor: default; }

/* ---- resource cards ---- */
.card { border-radius: 26px; padding: 42px 46px; margin-top: 28px; }
.card--bible { background: var(--sand); }
.card--book  { background: var(--periwinkle-card); }
.card--intro { background: #f3ece0; }
.card--soft  { background: #f6f1e6; }
.card--worship { background: #ece7f4; }
.card--complete { background: #eef2e9; text-align: center; }

.card-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-label);
}
.cite { margin-top: 22px; font-size: 15px; font-weight: 500; color: var(--stone); }

/* intro */
.intro-glyph { width: 84px; height: 84px; color: var(--stone); opacity: .38; margin-bottom: 26px; }
.intro-title { font-size: 38px; font-weight: 800; letter-spacing: -0.018em; line-height: 1.12; margin-top: 12px; }
.intro-body {
  font-family: var(--serif); font-size: 21px; line-height: 1.68; color: var(--stone-2); margin-top: 20px;
}

/* reflect / pray */
.soft-blurb { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--stone); margin-top: 10px; }
.soft-list { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: item; }
.soft-list li {
  font-family: var(--serif); font-size: 20px; line-height: 1.68; color: var(--stone-2);
  padding: 22px 0 22px 48px; border-top: 1px solid #e6ddc9; position: relative;
}
.soft-list li:first-child { border-top: 0; padding-top: 4px; }
.soft-list li::before {
  content: counter(item); counter-increment: item;
  position: absolute; left: 0; top: 22px;
  font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--gold-label);
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gold-rail);
  display: grid; place-items: center;
}
.soft-list li:first-child::before { top: 2px; }

/* worship — the app's hymn player card */
.card--worship .card-kicker { color: var(--ink-soft); }
.worship-title {
  font-size: 34px; font-weight: 800; color: var(--ink-soft);
  margin-top: 10px; letter-spacing: -0.018em; line-height: 1.14;
}
.worship-by { font-size: 17px; font-weight: 500; color: var(--stone); margin-top: 8px; }

/* click-to-load player: no request to YouTube until play is pressed */
.player {
  position: relative; margin-top: 26px;
  aspect-ratio: 16 / 9; width: 100%;
  border-radius: 16px; overflow: hidden;
  background: #14213f;
}
.player-thumb { width: 100%; height: 100%; object-fit: cover; }
.player-frame { width: 100%; height: 100%; border: 0; display: block; }
.player-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; background: rgba(0, 0, 0, .18); cursor: pointer;
  display: grid; place-items: center;
  transition: background .18s;
}
.player-play:hover { background: rgba(0, 0, 0, .06); }
.player-play-glyph {
  width: 74px; height: 52px; color: #fff;
  background: #f00; border-radius: 12px; padding: 6px 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
  transition: transform .18s;
}
.player-play:hover .player-play-glyph { transform: scale(1.06); }

.player--empty {
  display: grid; place-content: center; text-align: center;
  gap: 6px; padding: 26px; background: #e0dcf0;
  border: 1.5px dashed #b9b2d8;
}
.player-empty-title { font-size: 17px; font-weight: 700; color: var(--ink-soft); }
.player-empty-note {
  font-size: 13.5px; line-height: 1.5; color: #6f6a8c; max-width: 46ch; margin: 0 auto;
}

.player-credit {
  display: flex; align-items: center; gap: 9px;
  margin-top: 14px; font-size: 16px; font-weight: 500; color: var(--stone);
}
.yt-glyph { width: 22px; height: 22px; flex: none; }

.card--worship .rule-title {
  font-family: var(--sans); font-style: normal; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  margin: 34px 0 18px;
}

.lyric-note {
  background: var(--why-bg); border-radius: 14px; padding: 16px 22px; margin-bottom: 26px;
}
.lyric-note summary {
  cursor: pointer; list-style: none;
  font-size: 15.5px; font-weight: 700; color: var(--gold-label);
}
.lyric-note summary::-webkit-details-marker { display: none; }
.lyric-note summary::after { content: " ⌄"; }
.lyric-note[open] summary::after { content: " ⌃"; }
.lyric-note p {
  font-size: 15.5px; line-height: 1.6; color: var(--stone-2); margin-top: 12px;
}

.lyrics { display: flex; flex-direction: column; gap: 26px; }
.stanza { display: flex; gap: 20px; }
.stanza-n {
  flex: none; width: 20px; padding-top: 3px;
  font-size: 14px; font-weight: 600; color: #9a93b8; font-variant-numeric: tabular-nums;
}
.stanza-lines { display: flex; flex-direction: column; }
.stanza-lines .line { font-size: 18.5px; line-height: 1.62; color: #2b3556; }

/* completion */
.seal-glyph { width: 62px; height: 62px; color: #7d9a86; margin: 0 auto 22px; }
.complete-title { font-size: 32px; font-weight: 800; letter-spacing: -0.015em; margin-top: 12px; }
.complete-body {
  font-family: var(--serif); font-size: 20px; line-height: 1.6; color: var(--stone-2);
  max-width: 44ch; margin: 14px auto 0;
}
.complete-cta { margin-top: 30px; display: flex; justify-content: center; }

.card .ref { font-size: 32px; font-weight: 800; letter-spacing: -0.015em; color: var(--stone); }
.card--book .ref { color: var(--ink-soft); }
.card .byline { margin-top: 8px; font-size: 17px; font-weight: 600; color: var(--ink-soft); }
.card .byline .yr { color: #7d8cba; font-weight: 500; }

.meta-chips { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.meta-chips button {
  background: #d1ddfa; border: 0; border-radius: 999px; padding: 11px 20px;
  font-size: 15px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.meta-chips button:hover { background: #bdcff7; transform: translateY(-1px); }

/* Author/work detail sheets. This is a web adaptation of the app's
   StudyPart DetailSheet, used only by resource-card metadata buttons. */
body.detail-sheet-open { overflow: hidden; }
.detail-backdrop {
  position: fixed; z-index: 1000; inset: 0; display: flex; align-items: flex-end;
  justify-content: center; padding: 24px; background: rgba(14, 28, 51, .22);
  animation: detail-fade-in .18s ease-out;
}
.detail-sheet {
  position: relative; width: min(100%, 680px); max-height: min(82dvh, 760px); overflow: auto;
  padding: 18px 34px 38px; border: 1px solid rgba(201,162,75,.34); border-radius: 28px;
  background: #fcf8f0; box-shadow: 0 20px 60px rgba(24,22,19,.28); color: #2f2a22;
  animation: detail-rise-in .24s cubic-bezier(.22,.61,.36,1);
}
.detail-handle { width: 40px; height: 5px; border-radius: 5px; margin: 0 auto 20px; background: #ded7c7; }
.detail-close {
  position: absolute; right: 18px; top: 16px; width: 32px; height: 32px; border: 0;
  border-radius: 50%; background: rgba(60,55,40,.07); color: #6b6358; cursor: pointer;
  font-family: var(--sans); font-size: 24px; line-height: 1;
}
.detail-content { max-width: 580px; margin: 0 auto; }
.detail-eyebrow, .detail-section h4 {
  color: var(--gold-label); font-family: var(--sans); font-size: 11px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
}
.detail-eyebrow { margin-bottom: 16px; }
.detail-person { display: flex; align-items: flex-start; gap: 15px; }
.detail-monogram {
  display: grid; flex: none; width: 58px; height: 58px; place-items: center; border-radius: 50%;
  color: var(--gold-label); background: radial-gradient(circle at 34% 28%,#f7f2e7,#e9e0cf);
  border: 1.5px solid rgba(201,162,75,.24); box-shadow: inset 0 0 0 4px rgba(255,255,255,.55);
  font-family: var(--serif); font-size: 27px; font-weight: 600;
}
.detail-person h3, .detail-work-title { color: #2c2a24; font-size: 28px; font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.detail-secondary { margin-top: 3px; color: #8c8475; font-family: var(--serif); font-size: 16px; font-style: italic; }
.detail-muted { margin-top: 5px; color: #8c8475; font-size: 14px; font-weight: 600; line-height: 1.45; }
.detail-role { margin-top: 15px; color: #4d473c; font-size: 15px; font-weight: 650; }
.detail-place { margin-top: 4px; font-weight: 400; }
.detail-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.detail-pills span { border: 1px solid rgba(82,99,156,.16); border-radius: 999px; padding: 5px 11px; color: #5e6aae; background: rgba(51,66,154,.07); font-size: 12.5px; font-weight: 650; }
.detail-pills--gold span { border-color: rgba(201,162,75,.24); color: var(--gold-label); background: #efe9da; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-pills--works { margin-top: 22px; }
.detail-pills--works::before { content: 'Notable works'; flex-basis: 100%; color: var(--gold-label); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.detail-pills--works span { border-color: rgba(201,162,75,.24); color: #6b5d34; background: #efe9da; }
.detail-depth {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 22px 0; padding: 3px;
  border: 1px solid rgba(201,162,75,.16); border-radius: 999px; background: rgba(181,149,94,.10);
}
.detail-depth button { border: 0; border-radius: 999px; padding: 8px 10px; background: transparent; color: #8b7d63; cursor: pointer; font-size: 12px; font-weight: 750; }
.detail-depth button[aria-pressed="true"] { background: #fff; color: var(--gold-label); box-shadow: 0 1px 3px rgba(80,60,20,.13); }
.detail-section { margin-top: 22px; }
.detail-section h4 { margin-bottom: 8px; letter-spacing: .14em; }
.detail-section p { color: #4d473c; font-size: 15px; line-height: 1.64; }
.detail-bullets { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.detail-bullets li { position: relative; padding-left: 18px; color: #4d473c; font-size: 14.5px; line-height: 1.45; }
.detail-bullets li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-rail); }
.detail-work-title { margin-bottom: 18px; }
.detail-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); overflow: hidden; margin: 16px 0 18px; border: 1px solid rgba(201,162,75,.24); border-radius: 14px; background: rgba(255,255,255,.45); }
.detail-facts div { min-width: 0; padding: 12px 13px; border-right: 1px solid rgba(201,162,75,.24); }
.detail-facts div:last-child { border-right: 0; }
.detail-facts span { display: block; margin-bottom: 5px; color: var(--gold-label); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.detail-facts strong { color: #46413a; font-size: 13.5px; line-height: 1.3; }
@keyframes detail-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes detail-rise-in { from { transform: translateY(20px); } to { transform: translateY(0); } }

/* the gold-railed callout, straight from the app */
.why {
  margin-top: 26px; background: var(--why-bg);
  border-left: 4px solid var(--gold-rail);
  border-radius: 0 14px 14px 0; padding: 24px 30px;
}
.why .lbl {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700; font-style: normal;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-label); display: flex; align-items: center; gap: 8px;
}
.why .lbl svg { width: 14px; height: 14px; flex: none; }
.why p:not(.lbl) {
  font-family: var(--serif); font-style: italic; font-size: 19.5px; line-height: 1.62;
  color: var(--stone-2); margin-top: 12px;
}

.rule-title {
  display: flex; align-items: center; gap: 20px; margin: 34px 0 20px;
  font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--gold-label);
}
.card--book .rule-title {
  font-style: normal; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.rule-title::before, .rule-title::after {
  content: ""; height: 1px; background: currentColor; opacity: .32; flex: 1;
}

.passage, .excerpt {
  font-family: var(--serif); font-size: 20px; line-height: 1.76; color: var(--ink);
}
.card--book .passage, .card--book .excerpt { color: #23366b; }
.passage p + p, .excerpt p + p { margin-top: 1.1em; }
.passage > p:first-of-type::first-letter,
.excerpt > p:first-of-type::first-letter {
  float: left; font-size: 74px; line-height: .82; font-weight: 600;
  padding: 6px 10px 0 0; color: var(--ink);
}
.card--book .excerpt > p:first-of-type::first-letter { color: var(--ink-soft); }
.passage .v {
  font-size: 12px; font-weight: 600; vertical-align: super; color: var(--stone);
  margin-right: 3px; font-family: var(--sans);
}

/* Modernized / Original toggle */
.variant { display: inline-flex; background: var(--pill-track); border-radius: 999px; padding: 5px; margin-top: 30px; }
.variant button {
  border: 0; background: transparent; border-radius: 999px; cursor: pointer;
  padding: 11px 24px; font-size: 16px; font-weight: 600; color: var(--ink-soft);
  transition: background .18s, color .18s;
}
.variant button[aria-pressed="true"] { background: var(--ink-soft); color: #fff; }

/* ---- locked ---- */
.locked {
  margin-top: 28px; border: 2px dashed #ded4bc; border-radius: 26px;
  padding: 64px 56px; text-align: center; background: #faf5e9;
}
.locked .glyph { width: 54px; height: 54px; margin: 0 auto 22px; opacity: .42; }
.locked h3 { font-size: 32px; font-weight: 800; letter-spacing: -0.015em; margin-top: 10px; }
.locked .sum {
  font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.6;
  color: var(--stone-2); max-width: 46ch; margin: 16px auto 0;
}
.locked .why-locked {
  margin: 30px auto 0; max-width: 44ch; font-size: 16px; line-height: 1.6; color: var(--stone);
}
.locked .cta { margin-top: 30px; display: flex; justify-content: center; }

.store { display: inline-block; transition: opacity .18s; }
.store:hover { opacity: .8; }

/* ---- end-of-preview conversion ---- */
.finish {
  margin-top: 64px; background: var(--navy); border-radius: 32px; padding: 68px 64px; text-align: center;
}
.finish h3 { font-size: 40px; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.12; }
.finish p {
  font-family: var(--serif); font-size: 21px; line-height: 1.6; color: var(--periwinkle);
  max-width: 48ch; margin: 18px auto 0;
}
.finish .cta { margin-top: 34px; display: flex; gap: 20px; justify-content: center; align-items: center; }
.finish .beta { font-size: 15px; color: var(--periwinkle); }
.finish .beta a { text-decoration: underline; text-underline-offset: 3px; }

.disclaimer {
  margin: 44px auto 0; max-width: 60ch; text-align: center;
  font-size: 13.5px; line-height: 1.6; color: #a8a293;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .reader { grid-template-columns: 1fr; gap: 48px; }
  /* Study content first — a full outline above the fold would push the
     thing the visitor actually came to see off the screen. */
  .rail { position: static; order: 2; }
  .reader > main { order: 1; }
  .rail h3 { margin-bottom: 14px; }
  .rail ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
}
/* The masthead's three-part row needs ~620px before the nav starts
   fighting the badge; drop the links rather than let it overflow. */
@media (max-width: 860px) {
  .bar nav { display: none; }
  .bar .shell { height: 72px; }
}

@media (max-width: 720px) {
  .shell { width: calc(100vw - 64px); }
  .hero { padding: 60px 0 68px; }
  .hero h1 { font-size: 40px; }
  .hero .sub { font-size: 20px; }
  .ask-field { flex-direction: column; border-radius: 26px; padding: 8px; align-items: stretch; }
  .ask-field input { padding: 16px 18px; }
  .result-head h2 { font-size: 34px; }
  .part-head h3 { font-size: 30px; }
  .card { padding: 28px 24px; }
  .rail ol { grid-template-columns: 1fr; }
  .finish { padding: 44px 26px; }
  .detail-backdrop { padding: 12px; }
  .detail-sheet { max-height: 86dvh; padding: 16px 22px 30px; border-radius: 24px; }
  .detail-person h3, .detail-work-title { font-size: 25px; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-facts div { border-right: 0; border-bottom: 1px solid rgba(201,162,75,.24); }
  .detail-facts div:last-child { border-bottom: 0; }
}

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- structured Scripture ----------
   Mirrors the app's ScripturePassage: section headings and Hebrew subtitles
   stand apart, paragraphs come from the data's paragraph_break blocks, and
   poetry keeps its own line breaks rather than being reflowed as prose. */
.scripture-heading {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-label);
  margin: 30px 0 14px;
}
.passage > .scripture-heading:first-child { margin-top: 0; }
.scripture-subtitle {
  font-family: var(--serif); font-style: italic; font-size: 17.5px; line-height: 1.55;
  color: var(--stone); margin-bottom: 20px;
}
.passage p.is-poetry {
  padding-left: 1.6em;
  text-indent: -1.6em;      /* wrapped poem lines hang, as in a hymnal */
}
.passage p.is-poetry .v { text-indent: 0; }
.passage .poem-line { display: block; line-height: 1.8; }

/* Direct web adaptation of StudyPartTitleCard's overview. */
.intro-rule { height: 1px; margin: 28px 0 20px; background: linear-gradient(90deg, transparent, #b6ac9a, transparent); opacity: .6; }
.intro-contents-label { font-size: 15px; font-weight: 700; color: #8f8a78; }
.intro-contents { list-style: none; padding: 0; margin: 13px 0 0; display: grid; gap: 10px; }
.intro-contents li { font-size: 16px; font-weight: 600; color: #46413a; display: flex; gap: 11px; align-items: center; }
.intro-contents li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #b6ac9a; flex: none; }

/* The app presents worship in two steps: choose one of the recommendations,
   then read/listen to that exact choice. */
.hymn-choices { display: grid; gap: 10px; margin-top: 22px; }
.hymn-choice { width: 100%; display: flex; gap: 12px; padding: 13px; border-radius: 16px; background: #f6f3fb; border: 1px solid #e6def4; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.hymn-choice:hover { border-color: #b9acd8; background: #fff; transform: translateY(-1px); }
.hymn-choice[aria-pressed="true"] { border-color: var(--gold-rail); background: #fffaf0; box-shadow: 0 0 0 2px rgba(201,164,78,.16); }
.hymn-choice:focus-visible { outline: 3px solid rgba(82,99,156,.42); outline-offset: 2px; }
.hymn-rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #9a7d31; background: #fff; border: 1px solid rgba(201,162,75,.3); font-family: var(--serif); font-weight: 600; }
.hymn-choice-copy { display: grid; gap: 3px; min-width: 0; color: #434f97; }
.hymn-choice-copy strong { font-size: 17px; line-height: 1.2; }
.hymn-choice-copy span { font-size: 13px; color: #8f8499; }
.hymn-choice-copy em { font-family: var(--serif); font-size: 12px; color: #8f8499; }
.hymn-choice-reason { position: relative; margin: 8px 0 0; padding-left: 13px; color: #4d473c; font-size: 13.5px; line-height: 1.5; }
.hymn-choice-reason::before { content: '◆'; position: absolute; left: 0; top: 1px; color: var(--gold-rail); font-size: 8px; }
.worship-preview-label { margin-top: 27px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8f8499; }
.worship-title--selected { font-size: 27px; }
