:root {
  --bg-page: #FAF6F0;
  --bg-card: #E8EDE6;
  --bg-window: #F4EEE3;
  --text-primary: #2C2C2C;
  --text-secondary: #8B8178;
  --accent: #A2B59F;
  --accent-dark: #8FA38D;
  --border: #C8D3C5;
  --border-runner: #C9A96E;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page-wrapper {
  padding: 40px 20px 20px;
}

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

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  padding: 0 10px;
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  gap: 10px;
  color: var(--text-primary);
}

a.brand {
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a.brand:hover {
  opacity: 0.8;
}

.brand-name {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.brand-tagline {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 2px;
}

.brand-icon {
  color: var(--accent);
  width: 32px;
  height: 32px;
}

/* Login gate */
#login-screen {
  display: block;
  padding-top: 20px;
}

body.is-unlocked #login-screen {
  display: none;
}

#login-screen.is-hidden {
  display: none;
}

body.is-locked #protected-content {
  display: none;
}

.login-box {
  max-width: 520px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
}

.login-box .eyebrow {
  margin-bottom: 16px;
}

.login-text {
  font-size: 17px;
  color: var(--text-primary);
  margin: 0 0 28px;
  line-height: 1.6;
}

#login-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.login-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
}

.login-input:focus {
  border-color: var(--accent);
}

.login-submit {
  padding: 14px 28px;
  flex-shrink: 0;
}

.login-error {
  color: #a94442;
  font-size: 14px;
  margin: 14px 0 0;
}

/* Hero */
.hero {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  margin-bottom: 100px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-line {
  display: inline-block;
  width: 20px;
  height: 1px;
  background-color: var(--accent);
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 24px;
  font-size: 52px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  max-width: 800px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-primary);
  margin: 0 0 40px;
  max-width: 750px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-page);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
}

.btn-secondary {
  background-color: var(--bg-page);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: #f0ebe4;
}

/* Section intro */
.section-intro {
  margin-bottom: 40px;
  max-width: 600px;
}

.section-intro h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 24px;
  font-size: 36px;
  color: var(--text-primary);
}

.section-caption {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0;
}

/* Install / Runner sections */
.install-section,
.runner-section,
.prompt-section {
  margin-bottom: 100px;
}

.install-section {
  margin-bottom: 40px;
}

/* Grids */
.grid-step-row,
.grid-runner-row {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.grid-step-card {
  width: 25%;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.grid-runner-row {
  gap: 24px;
  margin-bottom: 80px;
}

.grid-runner-card {
  width: 33.333%;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-runner);
  border-radius: 4px 12px 12px 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.grid-step-card h3,
.grid-runner-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.grid-step-card p,
.grid-runner-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.runner-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  color: var(--accent);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Code window */
.code-window {
  background-color: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 30px;
  overflow: hidden;
}

.code-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-card);
}

.code-window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

.copy-btn {
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  transition: background-color 120ms ease;
}

.copy-btn:hover {
  background-color: #f0ebe4;
}

.code-window-body {
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
  font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14px;
  color: var(--text-primary);
  white-space: pre-wrap;
  line-height: 1.6;
  background-color: var(--bg-window);
  margin: 0;
}

.prompt-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 800px;
}

/* Footer */
.site-footer {
  margin-top: 100px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 32px 24px;
    margin-bottom: 60px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .grid-step-row,
  .grid-runner-row {
    flex-direction: column;
    gap: 16px;
  }

  .grid-step-card,
  .grid-runner-card {
    width: 100% !important;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* ---------------------------------------------------------------------------
   Prompt Library — EPUB-style browser (prompts/index.html, prompts/prompt-N.html)
   Keeps the editorial-luxury look of the ebook: Playfair headings, sage green,
   cream paper pages, gold runner accents.
   ------------------------------------------------------------------------- */

.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

/* Book top navigation bar */
.book-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.book-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.book-nav-back:hover {
  color: var(--accent-dark);
}

.book-nav-back svg {
  width: 18px;
  height: 18px;
}

.book-nav-position {
  font-size: 13px;
  color: var(--text-secondary);
}

/* The two-page spread */
.prompt-book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 40px;
}

.book-page {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 40px 36px;
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.book-page-right {
  background-color: var(--bg-window);
}

.book-page-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Small chapter eyebrow at top of left page */
.book-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

/* Prompt title block */
.book-prompt-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.book-prompt-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--border-runner);
}

.book-prompt-name {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

/* Context tips list */
.context-tips ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.context-tips li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
}

.context-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Expected outcome */
.expected-outcome {
  margin-top: 0;
}

.expected-outcome p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
}

/* Right page: prompt box header + copy */
.prompt-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.prompt-box-header .label {
  margin-bottom: 0;
}

.prompt-box-header .copy-btn {
  padding: 8px 18px;
}

/* The prompt code block */
.prompt-code-box {
  background-color: var(--bg-page);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-runner);
  border-radius: 4px 12px 12px 4px;
  padding: 24px;
  font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  margin: 0 0 24px;
}

/* Chained prompting tip box (standalone format; book currently uses inline style) */
.chained-tip {
  background-color: var(--bg-page);
  border: 1px solid var(--border-runner);
  border-radius: 12px;
  padding: 20px 22px;
  margin-top: auto;
}

.chained-tip .label {
  color: var(--border-runner);
}

.chained-tip p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
}

/* Pager (previous / next) */
.book-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 46%;
  text-decoration: none;
  color: var(--text-primary);
  padding: 14px 4px;
  border-radius: 12px;
  transition: background-color 120ms ease;
}

.pager-btn:hover {
  background-color: var(--bg-card);
}

.pager-prev {
  text-align: left;
}

.pager-next {
  text-align: right;
  margin-left: auto;
}

.pager-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--accent-dark);
  line-height: 1;
}

.pager-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.pager-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.pager-count {
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.pager-count strong {
  color: var(--text-primary);
}

.pager-btn.is-disabled {
  visibility: hidden;
}

/* TOC / index page */
.toc-intro {
  margin-bottom: 48px;
  max-width: 640px;
}

.toc-intro h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 20px;
  font-size: 48px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.toc-chapters {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-bottom: 60px;
}

.toc-chapter-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--text-primary);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.toc-chapter-sep {
  color: var(--accent);
  padding: 0 4px;
}

.toc-chapter-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 6px;
}

.toc-prompt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.toc-prompt {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-runner);
  border-radius: 4px 12px 12px 4px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background-color 120ms ease, transform 120ms ease;
}

.toc-prompt:hover {
  background-color: #dce3d7;
  transform: translateY(-1px);
}

.toc-prompt-number {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.toc-prompt-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.toc-prompt-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--accent-dark);
  font-size: 18px;
}

.toc-prompt-arrow svg {
  width: 16px;
  height: 16px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Marketing Homepage (index.html)
   Open-Book Prompt Engine vault: Publish the whole prompt library for free.
   ------------------------------------------------------------------------- */

.hero-lead {
  font-size: 17px;
  color: var(--text-primary);
  margin: 0 0 40px;
  max-width: 780px;
  line-height: 1.7;
}

/* Three selling-point features under the hero */
.vault-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.vault-feature {
  background-color: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-left: 4px solid var(--border-runner);
  padding: 26px 24px;
}

.vault-feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.vault-feature p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* Master Key callout */
.master-key-section {
  margin-bottom: 100px;
}

.master-key-callout {
  background-color: var(--bg-window);
  border: 1px solid var(--border-runner);
  border-left: 6px solid var(--border-runner);
  border-radius: 4px 16px 16px 4px;
  padding: 44px 40px;
}

.master-key-callout .eyebrow {
  color: var(--border-runner);
}

.master-key-callout .eyebrow-line {
  background-color: var(--border-runner);
}

.master-key-callout h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--text-primary);
  max-width: 720px;
}

.master-key-callout p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 16px;
  max-width: 780px;
}

.master-key-callout p:last-of-type {
  margin-bottom: 32px;
}

.master-key-detail {
  font-style: italic;
}

.advantage-note {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 20px 0 0 !important;
  max-width: 780px;
}

.buy-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: stretch;
}

.buy-actions--single {
  justify-content: flex-start;
}

.buy-actions--single .btn-buy {
  flex: 0 1 auto;
}

.btn-buy {
  flex: 1 1 280px;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.5;
  white-space: normal;
}

.btn-lava {
  background-color: var(--accent-dark);
  color: var(--bg-page);
}

.btn-lava:hover {
  background-color: var(--accent);
}

.btn-gumroad {
  background-color: var(--border-runner);
  color: var(--bg-page);
}

.btn-gumroad:hover {
  background-color: #b8944f;
}

/* Interactive Handbook / SEO hub */
.handbook-section {
  margin-bottom: 100px;
}

.phase-block {
  margin-bottom: 48px;
}

/* Accordion block (Playbook volumes + FAQ) */
.acc-block {
  margin-bottom: 24px;
}

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border);
  transition: color 120ms ease;
}

.acc-trigger:hover {
  color: var(--accent-dark);
}

.acc-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Volume accordions reuse the phase-title look */
.acc-trigger--volume {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 0;
}

.acc-title {
  flex: 1;
}

.acc-icon svg {
  width: 16px;
  height: 16px;
}

.sec-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

.acc-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--bg-page);
  color: var(--accent-dark);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease;
}

.acc-trigger[aria-expanded="true"] .acc-icon {
  transform: rotate(180deg);
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--bg-page);
}

.acc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 220ms ease;
}

.acc-panel.is-open {
  max-height: 1000px; /* fallback; JS sets exact height */
  overflow: hidden;
}

/* Phase cards moved into accordion panel */
.acc-panel .phase-cards {
  padding-top: 20px;
}

.phase-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.phase-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-runner);
  border-radius: 4px 12px 12px 4px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background-color 120ms ease, transform 120ms ease;
}

.phase-card:hover {
  background-color: #dce3d7;
  transform: translateY(-1px);
}

.phase-card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.phase-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.phase-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.phase-card-arrow {
  margin-top: 10px;
  color: var(--accent-dark);
  font-size: 20px;
  line-height: 1;
}

.phase-all-link {
  margin: 28px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.phase-all-link a {
  color: var(--accent-dark);
  text-decoration: none;
}

.phase-all-link a:hover {
  text-decoration: underline;
}

/* 2-way "How It Works" workflow panels */
.steps-section {
  margin-bottom: 100px;
}

.how-it-works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.how-panel {
  background-color: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.how-panel-paid {
  border-left: 6px solid var(--border-runner);
}

.how-panel-free {
  border-left: 6px solid var(--accent);
  background-color: var(--bg-card);
}

.how-panel h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--text-primary);
}

.how-panel-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 4px;
}

.how-panel-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 24px;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how-step {
  border-top: 1px solid var(--border);
  padding: 18px 0 0;
  margin-bottom: 18px;
}

.how-step:last-child {
  margin-bottom: 0;
}

.how-step-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.how-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Ready to Automate CTA */
.cta-section {
  margin-bottom: 100px;
}

.cta-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}

.cta-panel h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.cta-caption {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 auto 32px;
  max-width: 560px;
}

.cta-actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
}

.cta-actions .btn {
  /* equal width (flex-basis 0 + grow) and equal height (align-items: stretch) */
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: 480px;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.5;
}

/* Two long-text buttons side by side stop being readable on small screens */
@media (max-width: 768px) {
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 640px;
  }
}

/* FAQ — editorial card accordion */
.faq-section {
  margin-bottom: 0;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-runner);
  border-radius: 4px 16px 16px 4px;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.faq-item + .faq-item {
  margin-top: 14px;
}

.faq-item:hover {
  background-color: #e2e9de;
  border-left-color: var(--accent-dark);
}

.faq-item.is-active {
  background-color: var(--bg-window);
  border-color: var(--border-runner);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.faq-item.acc-block {
  margin-bottom: 0;
}

/* FAQ accordions: question = Playfair heading */
.acc-trigger--faq {
  font-size: 21px;
  line-height: 1.3;
  padding: 22px 24px;
  border-bottom: none;
}

.acc-trigger--faq:hover {
  color: var(--text-primary);
}

.acc-trigger--faq .acc-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.acc-panel .faq-answer {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  max-width: 780px;
  padding: 0 24px 26px;
}

/* Open-state icon */
.faq-item.is-active .acc-trigger[aria-expanded="true"] .acc-icon {
  background-color: var(--border-runner);
  border-color: var(--border-runner);
  color: var(--bg-page);
}

/* Responsive: marketing homepage */
@media (max-width: 768px) {
  .hero {
    margin-bottom: 60px;
  }

  .master-key-section,
  .handbook-section,
  .steps-section,
  .cta-section,
  .faq-section {
    margin-bottom: 60px;
  }

  .vault-features {
    grid-template-columns: 1fr;
  }

  .master-key-callout {
    padding: 32px 24px;
  }

  .master-key-callout h2 {
    font-size: 28px;
  }

  .buy-actions {
    flex-direction: column;
  }

  .btn-buy {
    flex: 1 1 auto;
  }

  .acc-trigger--volume {
    font-size: 22px;
  }

  .acc-trigger--faq {
    font-size: 19px;
    padding: 18px 20px;
  }

  .acc-panel .faq-answer {
    padding: 0 20px 22px;
  }

  .how-it-works {
    grid-template-columns: 1fr;
  }

  .how-panel {
    padding: 24px 20px;
  }

  .cta-panel {
    padding: 32px 24px;
  }

  .cta-panel h2 {
    font-size: 30px;
  }
}

/* Responsive: stack the spread */
@media (max-width: 880px) {
  .prompt-book {
    grid-template-columns: 1fr;
  }

  .book-page {
    padding: 28px 22px;
  }

  .book-prompt-name {
    font-size: 27px;
  }

  .pager-title {
    font-size: 15px;
  }

  .book-pager {
    flex-direction: column;
    align-items: stretch;
  }

  .pager-btn {
    max-width: 100%;
  }

  .pager-next {
    text-align: right;
  }

  .pager-count {
    text-align: center;
    order: -1;
  }
}
