/* ==========================================================================
   Tales of the Two Monks — Slow Paul Publishing
   style.v2.css  (rename to style.v3.css etc. after edits, and update every
   <link> that points to it, so browsers and Cloudflare fetch the new copy)
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face {
  font-family: "Almendra";
  src: url("/assets/fonts/almendra-regular.v1.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-regular.v1.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-italic.v1.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-semibold.v1.woff2") format("woff2");
  font-weight: 500 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-bold.v1.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg-1: #121417;
  --bg-2: #1c1f24;
  --surface: #20242a;
  --surface-2: #262b32;
  --line: #3a4049;
  --text: #ede6d6;
  --text-muted: #b8b0a0;
  --gold: #c9a227;
  --gold-soft: #d9b955;
  --cta: #ff8a1f;
  --cta-hover: #ffa347;
  --cta-text: #1a1206;
  --garnet: #b3202a;
  --garnet-text: #ffd9db;
  --focus: #ffd27a;

  --font-display: "Almendra", Georgia, "Times New Roman", serif;
  --font-body: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-pad: clamp(3rem, 6vw, 5rem);
  --radius: 10px;
  --header-h: 96px;
  --buybar-h: 0px;
  --shadow: 0 18px 40px -18px rgb(0 0 0 / .7), 0 2px 6px rgb(0 0 0 / .35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
  interpolate-size: allow-keywords;
}
@media (max-width: 1023.98px) {
  :root { --header-h: 68px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg-1);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--header-h);
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg-1);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgb(201 162 39 / .05), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 35%, #191c21 70%, var(--bg-1) 100%);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-soft); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; color: var(--gold); letter-spacing: .005em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; color: var(--text); }
::selection { background: var(--gold); color: var(--bg-1); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-pad); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 .75rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 1px; background: var(--gold);
}
.lead { font-size: 1.2rem; color: var(--text); }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }

/* Knotwork-inspired divider */
.rule {
  display: flex; align-items: center; gap: 1rem;
  color: var(--gold); margin: 0 auto;
  max-width: 18rem;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.rule svg { width: 22px; height: 22px; flex: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 1000;
  padding: .75rem 1.1rem; border-radius: 6px;
  background: var(--cta); color: var(--cta-text); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .25s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}
.btn-cta {
  background: var(--cta);
  color: var(--cta-text);
  border-color: var(--cta);
}
.btn-cta:hover, .btn-cta:focus-visible {
  background: var(--cta-hover);
  color: var(--cta-text);
  box-shadow: 0 0 0 1px var(--cta-hover), 0 0 24px rgb(255 138 31 / .45);
}
.btn-cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn-ghost {
  background: transparent; color: var(--text); border-color: #7d7666;
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--gold); color: var(--gold-soft); }
.btn-sm { min-height: 40px; padding: .45rem 1.1rem; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: .9rem 2rem; font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* Stock switch: text variants toggled by <html data-stock> */
.when-out { display: none; }
html[data-stock="out"] .when-in { display: none; }
html[data-stock="out"] .when-out { display: inline; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgb(32 36 42 / .82);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid rgb(201 162 39 / .18);
  transition: height .25s var(--ease), background-color .25s;
}
.site-header.is-scrolled { --header-h: 72px; height: 72px; background: rgb(32 36 42 / .92); }
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: block; line-height: 0; border-radius: 4px; }
.brand img { width: 280px; height: 80px; transition: width .25s var(--ease), height .25s var(--ease); }
.site-header.is-scrolled .brand img { width: 210px; height: 60px; }
.nav-list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav-left .nav-list { justify-content: flex-end; }
.nav-right .nav-list { justify-content: flex-start; }
.nav-link {
  position: relative;
  display: inline-block; padding: .5rem 0;
  font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-link:hover, .nav-link.is-active, .nav-link[aria-current="true"] { color: var(--gold); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.header-actions { display: none; }
.menu-toggle {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  background: transparent; color: var(--text);
  border: 1px solid #6d675a; border-radius: 10px; cursor: pointer;
}
.menu-toggle:hover { border-color: var(--gold); color: var(--gold); }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { display: none; }

@media (prefers-reduced-motion: reduce) {
  .site-header, .brand img, .nav-link::after { transition: none; }
}

@media (max-width: 1023.98px) {
  .site-header.is-scrolled { --header-h: 68px; height: 68px; }
  .header-inner { grid-template-columns: auto 1fr; gap: .75rem; }
  .nav-left, .nav-right { display: none; }
  .brand { grid-column: 1; grid-row: 1; }
  .brand img, .site-header.is-scrolled .brand img { width: 175px; height: 50px; }
  .header-actions { display: flex; grid-column: 2; justify-content: flex-end; align-items: center; gap: .6rem; }
  .mobile-menu {
    display: block;
    position: fixed; left: 0; right: 0; top: var(--header-h);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: rgb(26 29 34 / .98);
    border-bottom: 1px solid rgb(201 162 39 / .3);
    box-shadow: 0 24px 40px rgb(0 0 0 / .5);
    padding: .5rem var(--gutter) 1.5rem;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu li + li { border-top: 1px solid var(--line); }
  .mobile-menu .nav-link { display: block; padding: 1rem .25rem; font-size: 1rem; }
  .mobile-menu .nav-link::after { display: none; }
  .mobile-menu .btn { width: 100%; margin-top: 1rem; }
}
@media (max-width: 380px) {
  .brand img, .site-header.is-scrolled .brand img { width: 140px; height: 40px; }
  .header-actions .btn { padding-inline: .9rem; }
}
html:not(.js) .menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 3; /* lets the 3D book overlap the strip below */
  isolation: isolate;
  min-height: clamp(30rem, 40vw, 40rem);
  display: flex; align-items: center;
  view-timeline-name: --hero;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  background: #0d0e10;
}
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(10 11 13 / .92) 0%, rgb(10 11 13 / .78) 32%, rgb(10 11 13 / .35) 62%, rgb(10 11 13 / .05) 85%),
    linear-gradient(0deg, rgb(18 20 23 / .9) 0%, transparent 28%);
}
.hero-inner { position: relative; width: 100%; padding-block: 3.5rem 4.5rem; }
.hero-copy { max-width: 36rem; }
.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  line-height: 1.02;
  margin-bottom: .9rem;
  color: var(--gold);
  text-shadow: 0 2px 18px rgb(0 0 0 / .6);
}
.hero-sub {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.4;
  color: var(--text);
  margin-bottom: .6rem;
  text-wrap: balance;
}
.hero-author { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.75rem; }
.hero-author strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.text-link {
  color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold);
  text-underline-offset: .3em; padding-block: .6rem;
}
.text-link:hover { color: var(--gold); }
.hero-book {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--container)) / 2 - 48px));
  bottom: -96px;
  width: 340px;
  z-index: 3;
  filter: drop-shadow(0 30px 30px rgb(0 0 0 / .55)) drop-shadow(0 6px 10px rgb(0 0 0 / .4));
  transform: rotate(3deg);
  pointer-events: none;
}
.hero-book img { width: 100%; height: auto; }

/* CSS scroll-driven parallax (desktop pointer devices only) */
@keyframes hero-parallax {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to   { transform: translate3d(0, 22%, 0) scale(1.06); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .hero-bg img {
      animation: hero-parallax linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 100%;
    }
  }
}

@media (max-width: 1023.98px) {
  .hero { min-height: 26rem; }
  .hero-copy { max-width: 60%; }
  .hero-book { width: 240px; bottom: -64px; }
}
@media (max-width: 767.98px) {
  .hero { min-height: 0; display: block; }
  .hero::before {
    background:
      linear-gradient(180deg, rgb(10 11 13 / .78) 0%, rgb(10 11 13 / .7) 55%, rgb(18 20 23 / .95) 100%);
  }
  .hero-inner { padding-block: 2.5rem 0; text-align: center; }
  .hero-copy { max-width: none; margin-inline: auto; }
  .hero-actions { justify-content: center; flex-direction: column; gap: .5rem; }
  .hero-book {
    position: relative; right: auto; bottom: auto;
    width: 200px; margin: 1.75rem auto -48px;
    transform: rotate(2deg);
  }
}

/* ---------- Trust strip ---------- */
.strip {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, #262a31, #1f2328);
  border-block: 1px solid rgb(201 162 39 / .45);
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / .6);
}
.strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .75rem 1.5rem;
  padding-block: 1rem;
  padding-right: 250px; /* clears the visible part of the 3D book */
  min-height: 80px;
}
.strip-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 0;
  list-style: none; margin: 0; padding: 0;
  font-size: .92rem; font-weight: 500; color: var(--text);
}
.strip-list li { display: inline-flex; align-items: center; }
.strip-list li + li::before { content: "·"; color: var(--gold); margin-inline: .7rem; font-weight: 700; }
.strip-list .price { color: var(--gold); font-weight: 700; font-size: 1.05rem; }
@media (max-width: 1023.98px) {
  .strip-inner { padding-right: 190px; }
  .strip-list { gap: .25rem 1.25rem; }
  .strip-list li + li::before { display: none; }
}
@media (max-width: 767.98px) {
  .strip-inner { padding: 64px var(--gutter) 1.25rem; flex-direction: column; text-align: center; }
  .strip-list { flex-direction: column; align-items: center; gap: .2rem; }
  .strip-list li + li::before { display: none; }
}

/* ---------- Book / morph section ---------- */
.book-section { padding-top: clamp(4rem, 6vw, 4.5rem); }
.book-grid {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: start;
}
.morph-panel {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  min-height: 420px;
  display: grid; place-items: center;
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 1.5rem 0;
}
.morph-figure { margin: 0; width: 100%; display: grid; justify-items: center; gap: .75rem; }
.morph {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  max-width: min(100%, calc((100svh - var(--header-h) - 6rem) * 2 / 3));
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #2a2a28;
}
.morph img, .morph video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.morph .morph-to { opacity: var(--p, 0); will-change: opacity; }
.morph video { opacity: 0; transition: opacity .2s linear; }
.morph.video-ready video { opacity: 1; }
.morph.video-ready img { visibility: hidden; }
.credit { font-size: .85rem; color: var(--text-muted); margin: 0; text-align: center; }

.book-copy { padding: 2rem 0 0 clamp(1rem, 4vw, 3.5rem); }
.book-copy > * { max-width: 38rem; }
.blurb p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6em; line-height: .8;
  padding: .08em .12em 0 0;
  color: var(--gold);
}
.book-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.5rem 0 0; }
.book-cta .price-tag { font-weight: 700; font-size: 1.25rem; color: var(--gold); }

.details { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.details h3 { font-family: var(--font-display); font-weight: 400; color: var(--gold); font-size: 1.6rem; }
.details-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem; margin: 0;
}
.details-list > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px dashed #3d434c;
}
.details-list dt { color: var(--text-muted); font-size: .92rem; }
.details-list dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }

@media (max-width: 1023.98px) {
  .morph-panel { min-height: 0; }
  .details-list { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .book-grid { grid-template-columns: 1fr; }
  .morph-panel { position: static; height: auto; padding: 0; }
  .morph { max-width: 26rem; }
  .book-copy { padding: 2.5rem 0 0; }
  .book-copy > * { max-width: none; }
}

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.review-card {
  margin: 0; padding: 1.75rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.review-card blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.review-card figcaption { color: var(--text-muted); font-size: .9rem; }
.review-card figcaption strong { color: var(--text); }
.review-card.featured { grid-column: 1 / -1; border-color: rgb(201 162 39 / .5); }
.review-card.featured blockquote { font-size: 1.3rem; }

/* ---------- Pull-quote ---------- */
.pullquote {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgb(201 162 39 / .08), transparent 70%);
  border-block: 1px solid rgb(201 162 39 / .15);
}
.pullquote blockquote { margin: 1.5rem auto; max-width: 52rem; }
.pullquote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}
.pullquote p::before { content: "\201C"; color: var(--gold); }
.pullquote p::after { content: "\201D"; color: var(--gold); }

/* ---------- Sales ---------- */
.sales-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  gap: 0;
}
.sales-copy { padding-right: clamp(1.5rem, 4vw, 4rem); }
.sales-title { margin-bottom: .75rem; }
.sales-price {
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
  margin: .25rem 0 1.25rem;
}
.sales-price .amount { font-size: clamp(2.5rem, 5vw, 3.25rem); font-weight: 700; line-height: 1; color: var(--text); letter-spacing: -.02em; }
.sales-price .note { color: var(--text-muted); font-size: .95rem; }
.info-card {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: rgb(32 36 42 / .75);
  border: 1px solid var(--line);
}
.info-card h3 { font-size: 1rem; letter-spacing: .02em; margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.info-card h3 svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.info-card ul { margin: 0; padding: 0; list-style: none; }
.info-card li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.info-card li + li { border-top: 1px dashed #3d434c; }
.info-card li span:last-child { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.info-card .plain li { display: block; }
.info-card p { margin: .5rem 0 0; font-size: .95rem; color: var(--text-muted); }
.info-card p:first-of-type { margin-top: 0; }
.info-card.signed p { color: var(--text); }

.buy-box { margin-top: 1.75rem; }
.buy-slot { min-height: 56px; display: flex; align-items: center; }
.buy-slot stripe-buy-button { display: block; width: 100%; max-width: 22rem; min-height: 50px; }
.buy-fallback { display: none; width: 100%; max-width: 22rem; }
html:not(.js) .buy-fallback, .buy-box.use-fallback .buy-fallback { display: inline-flex; }
html:not(.js) .buy-slot, .buy-box.use-fallback .buy-slot { display: none; }
.trust-line { margin: 1rem 0 0; font-size: .9rem; color: var(--text-muted); display: flex; gap: .5rem; align-items: flex-start; }
.trust-line svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: .15rem; }
.trust-line a { color: var(--text-muted); }
.trust-line a:hover { color: var(--gold); }
.stock-banner { display: none; }
html[data-stock="out"] .buy-slot,
html[data-stock="out"] .buy-fallback,
html[data-stock="out"] .trust-line { display: none !important; }
html[data-stock="out"] .stock-banner {
  display: block;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: rgb(179 32 42 / .16);
  border: 2px solid var(--garnet);
}
.stock-banner strong { display: block; font-size: 1.25rem; color: var(--garnet-text); margin-bottom: .35rem; }
.stock-banner p { margin: 0 0 1rem; }

.sales-visual { margin: 0; }
.sales-visual img {
  width: 100%; max-width: 30rem; margin-inline: auto;
  border-radius: 18px;
  box-shadow: var(--shadow), 0 0 0 1px rgb(201 162 39 / .25);
}
@media (max-width: 767.98px) {
  .sales-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sales-visual { order: -1; }
  .sales-visual img { max-width: 20rem; }
  .sales-copy { padding-right: 0; }
}

/* ---------- Author ---------- */
.author-grid { display: grid; grid-template-columns: 40% 60%; align-items: start; }
.author-photo { margin: 0; padding-right: clamp(1rem, 4vw, 3.5rem); }
.author-photo img {
  width: 100%; max-width: 384px; margin-left: auto;
  aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.author-photo figcaption { max-width: 384px; margin: .75rem 0 0 auto; font-size: .85rem; color: var(--text-muted); }
.author-copy > * { max-width: 40rem; }
.quote {
  position: relative;
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgb(201 162 39 / .08), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote p { font-size: 1.12rem; font-style: italic; margin: 0; }
.quote cite { display: block; margin-top: .6rem; font-style: normal; font-size: .9rem; color: var(--text-muted); }
.facts { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: grid; gap: .9rem; }
.facts li { position: relative; padding-left: 2rem; }
.facts li::before {
  content: ""; position: absolute; left: .25rem; top: .55em;
  width: .7rem; height: .7rem; transform: rotate(45deg);
  border: 2px solid var(--gold);
}
.talks {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgb(32 36 42 / .6);
}
.talks p { margin: 0; flex: 1 1 16rem; }
@media (max-width: 767.98px) {
  .author-grid { grid-template-columns: 1fr; gap: 2rem; }
  .author-photo { padding: 0; }
  .author-photo img, .author-photo figcaption { margin-inline: auto; max-width: 20rem; }
  .author-photo figcaption { text-align: center; }
}

/* ---------- FAQ ---------- */
.narrow { max-width: 48rem; margin-inline: auto; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 1.75rem; height: 1px; background: var(--gold); }
.faq-list { display: grid; gap: .75rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(32 36 42 / .7);
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgb(201 162 39 / .55); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 600; font-size: 1.05rem;
  cursor: pointer; list-style: none;
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-item summary:hover { color: var(--gold-soft); }
.faq-answer { padding: 0 1.25rem 1.15rem; color: var(--text); }
.faq-answer p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size .3s var(--ease), content-visibility .3s allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item, .faq-item summary::after { transition: none; }
}

/* ---------- Forms ---------- */
.panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(38 43 50 / .85), rgb(32 36 42 / .85));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-intro { text-align: center; color: var(--text); margin-bottom: 1.75rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; }
.field label .req { color: var(--text-muted); font-weight: 400; font-size: .9rem; }
.input {
  width: 100%;
  min-height: 48px;
  padding: .75rem 1rem;
  font: 400 1rem/1.5 var(--font-body);
  color: var(--text);
  background: #15171b;
  border: 1px solid #8a8373;
  border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #9d968a; }
.input:hover { border-color: #b1a994; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(201 162 39 / .35); }
textarea.input { min-height: 10rem; resize: vertical; }
.input[aria-invalid="true"] { border-color: #ff6b74; }
.field-error { color: #ff9aa1; font-size: .9rem; margin: .4rem 0 0; }
.field-error:empty { display: none; }
.field-hint { color: var(--text-muted); font-size: .85rem; margin: .35rem 0 0; display: flex; justify-content: space-between; gap: 1rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { min-height: 65px; margin: 0 0 1rem; }
.privacy-note { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { margin: 1.25rem 0 0; padding: 0; border-radius: 8px; }
.form-status:not(:empty) { padding: 1rem 1.25rem; }
.form-status.is-success { background: rgb(76 140 74 / .18); border: 1px solid #6fae6c; color: #d6f2d4; }
.form-status.is-error { background: rgb(179 32 42 / .16); border: 1px solid var(--garnet); color: var(--garnet-text); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Newsletter ---------- */
.newsletter-panel { text-align: center; }
.newsletter-panel h2 { margin-bottom: .5rem; }
.consent { color: var(--text-muted); font-size: .92rem; max-width: 34rem; margin: 0 auto 1.5rem; }
.kit-slot { min-height: 150px; max-width: 34rem; margin-inline: auto; }
.kit-slot noscript p, .kit-fallback { color: var(--text-muted); }

/* Kit embed restyle — Kit injects its own CSS, so these rules need weight */
.kit-slot .formkit-form {
  max-width: none !important;
  background: transparent !important;
  border: 0 !important;
  font-family: var(--font-body) !important;
}
.kit-slot .formkit-form [data-style="clean"] { padding: 0 !important; }
.kit-slot .formkit-form .formkit-fields { display: flex !important; flex-wrap: wrap !important; gap: .75rem !important; margin: 0 !important; }
.kit-slot .formkit-form .formkit-field { flex: 1 1 14rem !important; margin: 0 !important; }
.kit-slot .formkit-form .formkit-input {
  width: 100% !important;
  min-height: 52px !important;
  padding: .75rem 1rem !important;
  font: 400 1rem/1.5 var(--font-body) !important;
  color: var(--text) !important;
  background: #15171b !important;
  border: 1px solid #8a8373 !important;
  border-radius: 999px !important;
}
.kit-slot .formkit-form .formkit-input::placeholder { color: #9d968a !important; opacity: 1 !important; }
.kit-slot .formkit-form .formkit-input:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgb(201 162 39 / .35) !important; outline: none !important; }
.kit-slot .formkit-form .formkit-submit {
  flex: 0 0 auto !important;
  margin: 0 !important;
  min-height: 52px !important;
  padding: 0 !important;
  background: var(--cta) !important;
  color: var(--cta-text) !important;
  border: 1px solid var(--cta) !important;
  border-radius: 999px !important;
  font: 600 1rem/1.2 var(--font-body) !important;
  cursor: pointer !important;
  transition: background-color .2s, box-shadow .25s !important;
}
.kit-slot .formkit-form .formkit-submit > span { padding: .9rem 1.75rem !important; display: block !important; }
.kit-slot .formkit-form .formkit-submit:hover,
.kit-slot .formkit-form .formkit-submit:focus-visible {
  background: var(--cta-hover) !important;
  box-shadow: 0 0 0 1px var(--cta-hover), 0 0 24px rgb(255 138 31 / .45) !important;
}
.kit-slot .formkit-form .formkit-submit:focus-visible { outline: 3px solid var(--focus) !important; outline-offset: 3px !important; }
.kit-slot .formkit-form .formkit-alert { border-radius: 8px !important; font-family: var(--font-body) !important; }
.kit-slot .formkit-form .formkit-alert-success { background: rgb(76 140 74 / .18) !important; border-color: #6fae6c !important; color: #d6f2d4 !important; }
.kit-slot .formkit-form .formkit-alert-error { background: rgb(179 32 42 / .16) !important; border-color: var(--garnet) !important; color: var(--garnet-text) !important; }
.kit-slot .formkit-form .formkit-powered-by-convertkit-container { margin: 1rem 0 0 !important; justify-content: center !important; opacity: .55; }
.kit-slot .formkit-form .formkit-powered-by-convertkit-container:hover { opacity: .9; }
@media (prefers-reduced-motion: reduce) {
  .kit-slot .formkit-form .formkit-submit { transition: none !important; }
}

/* ---------- Footer (compact single row) ---------- */
.site-footer {
  margin-top: var(--section-pad);
  padding: 1rem 0;
  background: rgb(14 16 18 / .85);
  border-top: 1px solid rgb(201 162 39 / .25);
  font-size: .85rem;
  color: var(--text-muted);
}
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem 1.5rem; align-items: center; }
.footer-grid > div:nth-child(2) { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem 1.25rem; }
.footer-grid > div:nth-child(3) { text-align: right; }
.footer-grid p { margin: 0; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--gold); }
.footer-copy { color: var(--text-muted); }
.social { display: flex; justify-content: center; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.social a {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #6d675a; color: var(--text);
  transition: color .2s, border-color .2s, background-color .2s;
}
.social a:hover { color: var(--bg-1); background: var(--gold); border-color: var(--gold); }
.social svg { width: 16px; height: 16px; }
.legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1rem; }
.legal-links a { display: inline-block; padding-block: .25rem; }
/* Credit: deliberately low-contrast, close to the footer background */
.built-by { font-size: .75rem; color: #4a4d52; }
.site-footer .built-by a { color: #5c5f64; font-weight: 400; }
.site-footer .built-by a:hover { color: var(--text-muted); }
@media (max-width: 767.98px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid > div:nth-child(3) { text-align: center; }
  .site-footer { padding-bottom: calc(1rem + var(--buybar-h)); }
}

/* ---------- Floating UI ---------- */
.back-to-top {
  /* Left side: the reCAPTCHA badge (from the Kit embed) occupies bottom-right */
  position: fixed; left: 1rem; bottom: calc(1rem + var(--buybar-h));
  z-index: 90;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgb(32 36 42 / .9);
  color: var(--gold);
  border: 1px solid rgb(201 162 39 / .55);
  box-shadow: 0 6px 16px rgb(0 0 0 / .45);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s, bottom .25s var(--ease);
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--gold); color: var(--bg-1); }

.buy-bar { display: none; }
@media (max-width: 767.98px) {
  .buy-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: rgb(26 29 34 / .96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgb(201 162 39 / .4);
    box-shadow: 0 -8px 24px rgb(0 0 0 / .4);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
  }
  .buy-bar.is-visible { transform: none; visibility: visible; }
  .buy-bar-info { line-height: 1.25; }
  .buy-bar-info strong { display: block; font-size: 1.2rem; color: var(--text); }
  .buy-bar-info > span { font-size: .8rem; color: var(--text-muted); }
  html[data-stock="out"] .buy-bar-info strong { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top, .buy-bar { transition: none; }
}

/* ---------- Supporting pages ---------- */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid rgb(201 162 39 / .2);
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgb(201 162 39 / .07), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: .4rem; }
.updated { color: var(--text-muted); font-size: .92rem; margin: 0; }
.prose { max-width: 46rem; margin-inline: auto; padding-block: 2.5rem 1rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1em; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--gold); }
.prose address { font-style: normal; padding: 1rem 1.25rem; border-left: 3px solid var(--gold); background: rgb(32 36 42 / .6); margin-bottom: 1em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--gold-soft); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid rgb(201 162 39 / .4); background: rgb(201 162 39 / .07); }

.thanks-wrap { min-height: 55vh; display: grid; place-items: center; padding-block: var(--section-pad); }
.thanks-card { text-align: center; max-width: 40rem; }
.thanks-card h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.thanks-card .btn { margin: .5rem; }
.countdown { margin-top: 1.5rem; color: var(--text-muted); font-size: .95rem; }
.countdown[hidden] { display: none; }

@media print {
  .site-header, .buy-bar, .back-to-top, .hero-bg, .menu-toggle { display: none !important; }
  body { padding-top: 0; background: #fff; color: #000; }
}
