.book-offer-card,
.book-purchase-card,
.book-checkout-summary,
.book-step-card,
.book-qr-card,
.book-detail-card {
  font-family: var(--sans);
}

.book-offer-card {
  margin: 2.4em 0 3em;
  padding: 32px;
  background: color-mix(in srgb, var(--white) 88%, var(--paper-deep));
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(23, 26, 24, 0.07);
}

.book-offer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
}

.prose .book-offer-card h2,
.prose .book-purchase-card h2,
.book-checkout h2,
.book-checkout h3 {
  margin: 0;
}

.book-kicker {
  margin: 0 0 8px !important;
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.book-offer-card h2 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.4;
}

.book-offer-copy {
  margin: 18px 0 0 !important;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.book-price {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 14px 16px;
  text-align: right;
  background: var(--paper-deep);
  border-radius: 8px;
}

.book-price span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.book-price strong {
  display: block;
  margin-top: 2px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 30px;
  line-height: 1.1;
}

.book-fact-grid {
  display: grid;
  margin: 24px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.book-fact-grid div {
  min-width: 0;
}

.book-fact-grid dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
}

.book-fact-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.book-actions {
  display: flex;
  margin-top: 24px;
  align-items: stretch;
  gap: 12px;
}

.prose a.book-button,
a.book-button,
button.book-button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.prose a.book-button {
  border-bottom: 1px solid var(--ink);
}

.book-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23, 26, 24, 0.11);
}

.book-button.primary {
  color: var(--paper);
  background: var(--ink);
}

.book-button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.book-button.compact {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 13px;
}

.book-offer-note {
  margin: 14px 0 0 !important;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.book-feature-grid,
.book-audience-grid {
  display: grid;
  margin: 1.4em 0 2.2em;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.book-detail-card {
  padding: 22px;
  background: color-mix(in srgb, var(--white) 78%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.book-detail-card h3 {
  margin: 0 0 8px !important;
  font-family: var(--serif);
  font-size: 20px;
}

.book-detail-card p,
.book-detail-card ul {
  margin: 0 !important;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
}

.book-detail-card ul {
  padding-left: 19px;
}

.book-detail-card li + li {
  margin-top: 6px;
}

.book-compare-wrap {
  margin: 1.4em 0 2.6em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.book-compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 13px;
}

.book-compare th,
.book-compare td {
  padding: 15px 17px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.book-compare th {
  background: var(--paper-deep);
  font-weight: 700;
}

.book-compare tr:last-child td {
  border-bottom: 0;
}

.book-compare td:first-child {
  color: var(--muted);
  font-weight: 600;
}

.book-purchase-card {
  margin: 3em 0 1.5em;
  padding: 34px;
  color: #fff;
  background: var(--forest);
  border-radius: 12px;
}

.book-purchase-card .book-kicker {
  color: var(--accent-soft);
}

.book-purchase-card h2 {
  color: #fff;
  font-family: var(--serif);
  font-size: 32px;
}

.book-purchase-card p {
  margin: 14px 0 0 !important;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
}

.book-purchase-card .book-button.primary {
  color: #171a18;
  background: #fff;
  border-color: #fff;
}

.book-purchase-card .book-button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.book-purchase-steps {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.book-purchase-steps span {
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.55;
}

.book-sticky-cta,
.book-sticky-spacer {
  display: none;
}

.book-buy-intro .page-deck {
  max-width: 760px;
}

.book-checkout {
  padding-block: 64px 120px;
}

.book-checkout-summary {
  display: flex;
  padding: 28px 30px;
  align-items: center;
  justify-content: space-between;
  background: var(--paper-deep);
  border-radius: 10px;
  gap: 28px;
}

.book-checkout-summary h2 {
  font-family: var(--serif);
  font-size: 28px;
}

.book-checkout-summary p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.book-checkout-price {
  flex: 0 0 auto;
  text-align: right;
}

.book-checkout-price span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.book-checkout-price strong {
  display: block;
  color: var(--accent);
  font-size: 38px;
  line-height: 1.15;
}

.book-checkout-grid {
  display: grid;
  margin-top: 26px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 26px;
}

.book-step-card,
.book-qr-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.book-step-card h2,
.book-qr-card h2 {
  font-family: var(--serif);
  font-size: 26px;
}

.book-step-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: checkout-step;
}

.book-step-list li {
  position: relative;
  min-height: 50px;
  padding: 0 0 22px 54px;
  color: var(--muted);
  counter-increment: checkout-step;
  font-size: 14px;
  line-height: 1.75;
}

.book-step-list li:last-child {
  padding-bottom: 0;
}

.book-step-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  content: counter(checkout-step);
  font-size: 12px;
  font-weight: 700;
}

.book-step-list strong {
  color: var(--ink);
}

.book-includes {
  display: grid;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.book-includes span {
  color: var(--muted);
  font-size: 13px;
}

.book-includes span::before {
  margin-right: 7px;
  color: var(--forest);
  content: "✓";
  font-weight: 700;
}

.book-qr-frame {
  max-width: 330px;
  margin: 22px auto 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(23, 26, 24, 0.1);
  border-radius: 8px;
}

.book-qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.book-remark-box {
  margin-top: 20px;
  padding: 15px;
  background: var(--paper-deep);
  border-radius: 6px;
  text-align: center;
}

.book-remark-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.book-remark-box code {
  display: inline-block;
  margin-top: 7px;
  padding: 5px 9px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
}

.book-copy-button {
  display: inline-flex;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 13px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
}

.book-copy-button:hover {
  background: var(--white);
}

.book-qr-card .book-button {
  width: 100%;
  margin-top: 14px;
}

.book-checkout-note {
  margin-top: 26px;
  padding: 20px 22px;
  color: var(--muted);
  background: color-mix(in srgb, var(--paper-deep) 75%, transparent);
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.8;
}

.book-checkout-note strong {
  color: var(--ink);
}

.book-checkout .book-actions {
  justify-content: center;
}

@media (max-width: 760px) {
  .book-offer-card {
    padding: 24px;
  }

  .book-offer-head,
  .book-checkout-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .book-price,
  .book-checkout-price {
    text-align: left;
  }

  .book-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-feature-grid,
  .book-audience-grid,
  .book-checkout-grid {
    grid-template-columns: 1fr;
  }

  .book-purchase-steps {
    grid-template-columns: 1fr;
  }

  .book-checkout {
    padding-block: 46px 108px;
  }
}

@media (max-width: 680px) {
  .book-actions {
    flex-direction: column;
  }

  .book-button {
    width: 100%;
  }

  .book-offer-card h2,
  .book-purchase-card h2 {
    font-size: 26px;
  }

  .book-purchase-card {
    padding: 26px 22px;
  }

  .book-step-card,
  .book-qr-card {
    padding: 24px;
  }

  .book-includes {
    grid-template-columns: 1fr;
  }

  .book-sticky-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
    grid-template-columns: 0.9fr 1.1fr;
    gap: 8px;
  }

  .book-sticky-cta .book-button {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .book-sticky-spacer {
    display: block;
    height: 72px;
  }
}
