/* ==========================================================================
   book.css — /book, "If You Take The Risk"
   The same page ecom-guide.com/book carries, rebuilt on this site's tokens:
   paper card, ember accent, Oswald headlines. Every colour below comes from
   style.css :root — nothing new is invented here.
   Blocks: hero, buy, author's note, four parts, core ideas, gallery,
   who-it's-for, signature quote, marquee, closer, sticky buy.
   ========================================================================== */

/* ---- Hero: the only photo band above the fold ---------------------------- */
.bk-hero {
  position: relative;
  padding: clamp(64px, 9vw, 118px) 0 clamp(58px, 8vw, 96px);
  color: #fff;
  background:
    linear-gradient(92deg, rgba(8, 6, 5, .9) 0%, rgba(8, 6, 5, .66) 52%, rgba(8, 6, 5, .34) 100%),
    url('/assets/images/book-hero.jpg') center 38% / cover no-repeat;
}
.bk-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 400px at 92% 4%, rgba(179, 36, 28, .5) 0%, transparent 64%);
}
.bk-hero-inner { position: relative; z-index: 1; max-width: 1080px; }
.bk-hero h1 { color: #fff; max-width: 13ch; }
/* "the risk" is one unit — it wraps as a whole line, never mid-phrase. */
.bk-hero h1 em { color: #E9857C; font-style: normal; text-transform: none; white-space: nowrap; }
.bk-hero-eyebrow { background: rgba(255, 255, 255, .13); color: #F2C9C4; letter-spacing: .1em; }
.bk-hero-lead {
  max-width: 60ch; margin: 4px 0 0;
  font-size: 17.5px; line-height: 1.62; color: rgba(255, 255, 255, .76);
}
.bk-hero .hero-cta-row { margin-top: 30px; }
.bk-hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: rgba(255, 255, 255, .6);
}
.bk-hero-trust li { display: flex; align-items: center; gap: 7px; }
.bk-hero-trust li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Centred section heads — the rest of the site is left-aligned, this page
   keeps the original's centred rhythm for its editorial sections. */
.bk-head-center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }
.bk-head-center h2 em { color: var(--accent); font-style: normal; text-transform: none; }
.bk-head-center p { margin-left: auto; margin-right: auto; max-width: 60ch; }

/* ---- Buy block ----------------------------------------------------------- */
.bk-buy { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 4vw, 54px); align-items: center; }
.bk-buy-cover {
  margin: 0; border-radius: var(--r-card); overflow: hidden;
  background: #14110F; box-shadow: var(--shadow-lift);
}
.bk-buy-cover img { display: block; width: 100%; height: auto; }
.bk-buy-body h2 { margin-bottom: .3em; }

.bk-price {
  margin-top: 28px; padding: 26px;
  border-radius: var(--r-card); background: var(--grad-pitch); color: #fff;
  box-shadow: 0 40px 80px -44px rgba(0, 0, 0, .8);
}
.bk-price-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.bk-price-format {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.bk-price-amount {
  font-family: var(--font-headline); font-weight: 600; font-size: 38px;
  line-height: 1; color: #fff; font-variant-numeric: tabular-nums;
}
.bk-price-btn { width: 100%; margin-top: 16px; }
.bk-price-alt {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.bk-price-alt .bk-price-head { gap: 12px; }
.bk-price-alt .bk-price-amount { font-size: 26px; color: rgba(255, 255, 255, .9); }
.bk-price-link {
  font-family: var(--font-ui); font-weight: 600; font-size: 14.5px;
  color: #E9857C; text-decoration: none; white-space: nowrap;
}
.bk-price-link:hover { color: #fff; }
.bk-price-note {
  display: flex; align-items: center; gap: 11px; margin: 20px 0 0;
  font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .66);
}
.bk-price-note strong { color: #fff; }
.bk-price-note svg {
  flex: 0 0 22px; width: 22px; height: 22px;
  fill: none; stroke: #7FD3AE; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Author's note ------------------------------------------------------- */
.bk-note {
  position: relative; overflow: hidden;
  border-radius: var(--r-card); padding: clamp(38px, 5vw, 66px) clamp(26px, 5vw, 70px);
  text-align: center; color: #fff; background: var(--grad-pitch);
  box-shadow: 0 40px 80px -44px rgba(0, 0, 0, .8);
}
.bk-note::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 320px at 84% 6%, rgba(179, 36, 28, .34) 0%, transparent 64%);
}
.bk-note > * { position: relative; z-index: 1; }
.bk-note .eyebrow { background: rgba(255, 255, 255, .13); color: #F2C9C4; }
/* Oswald is condensed, so `ch` under-measures badly here — the cap is in px
   to keep the pull-quote at five lines instead of ten. */
.bk-note-quote {
  margin: 8px auto 0; max-width: 760px;
  font-family: var(--font-headline); font-weight: 600; text-transform: uppercase;
  font-size: clamp(23px, 2.9vw, 34px); line-height: 1.12; letter-spacing: -.005em; color: #fff;
}
.bk-note-quote::before {
  content: "\201C"; display: block;
  font-family: var(--font-headline); font-size: clamp(64px, 8vw, 108px);
  line-height: .42; height: .44em; color: var(--accent); margin-bottom: 10px;
}
.bk-note-body { max-width: 62ch; margin: clamp(28px, 4vw, 44px) auto 0; text-align: left; }
.bk-note-body p { color: rgba(255, 255, 255, .72); font-size: 15.5px; line-height: 1.72; margin: 0 0 15px; }
.bk-note-body p:last-child { margin-bottom: 0; }
.bk-note-sign {
  margin: clamp(26px, 3.4vw, 38px) 0 0;
  font-family: var(--font-headline); font-weight: 600; text-transform: uppercase;
  font-size: clamp(19px, 2vw, 25px); letter-spacing: .02em; color: #fff;
}
.bk-note-sign small {
  display: block; margin-top: 10px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
}

/* ---- The four parts ------------------------------------------------------ */
.bk-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bk-part {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bk-part:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.bk-part-num {
  position: absolute; z-index: 0; top: -18px; right: 16px;
  font-family: var(--font-headline); font-weight: 600;
  font-size: clamp(110px, 12vw, 170px); line-height: 1;
  color: rgba(20, 17, 15, .05); pointer-events: none; user-select: none;
}
.bk-part > *:not(.bk-part-num) { position: relative; z-index: 1; }
.bk-part-tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 12px;
}
.bk-part-title {
  font-family: var(--font-headline); font-weight: 600; text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 27px); line-height: 1.08; letter-spacing: -.005em;
  margin: 0 0 12px; color: var(--ink);
}
.bk-part-desc { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); margin: 0 0 20px; }
.bk-part-covers {
  list-style: none; display: grid; gap: 9px; margin: 0; padding: 18px 0 0;
  border-top: 1px solid var(--line-2);
}
.bk-part-covers li { position: relative; padding-left: 22px; font-size: 14px; color: var(--ink); }
.bk-part-covers li::before {
  content: ''; position: absolute; left: 0; top: .68em;
  width: 12px; height: 1px; background: var(--accent);
}

/* ---- Core ideas ---------------------------------------------------------- */
.bk-ideas-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-card); padding: clamp(32px, 4vw, 54px);
  background: var(--grad-pitch); color: #fff;
  box-shadow: 0 40px 80px -44px rgba(0, 0, 0, .8);
}
.bk-ideas-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 380px at 8% 100%, rgba(179, 36, 28, .3) 0%, transparent 64%);
}
.bk-ideas-card > * { position: relative; z-index: 1; }
.bk-ideas-head { margin-bottom: 34px; }
.bk-ideas-head h2 { color: #fff; }
.bk-ideas-head .eyebrow { background: rgba(255, 255, 255, .13); color: #F2C9C4; }
.bk-ideas {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--r-tile); overflow: hidden;
}
.bk-idea {
  background: #1B1714; padding: clamp(22px, 2.4vw, 30px);
  display: flex; flex-direction: column; gap: 10px;
  transition: background .25s ease;
}
.bk-idea:hover { background: #241E1A; }
.bk-idea-n {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.bk-idea-t {
  font-family: var(--font-headline); font-weight: 600; text-transform: uppercase;
  font-size: clamp(18px, 1.9vw, 22px); line-height: 1.12; color: #fff; margin: 0;
}
.bk-idea-d { font-size: 14px; line-height: 1.62; color: rgba(255, 255, 255, .66); margin: 0; }

/* ---- Gallery ------------------------------------------------------------- */
.bk-gallery {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(160px, 18vw, 268px); gap: 14px;
}
.bk-shot {
  margin: 0; overflow: hidden; grid-column: span 2;
  background: #14110F; border-radius: var(--r-tile);
}
.bk-shot-tall { grid-row: span 2; }
.bk-shot-wide { grid-column: span 4; }
.bk-shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(100%) contrast(1.04);
  transition: transform .6s ease, filter .6s ease;
}
.bk-shot:hover img { transform: scale(1.05); filter: none; }

/* ---- Who it's for / not for ---------------------------------------------- */
.bk-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bk-fit-col { border-radius: var(--r-card); padding: clamp(26px, 3vw, 38px); }
.bk-fit-yes { background: var(--grad-pitch); color: #fff; box-shadow: 0 34px 70px -44px rgba(0, 0, 0, .8); }
.bk-fit-no { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.bk-fit-h {
  font-family: var(--font-headline); font-weight: 600; text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .01em; margin: 0 0 20px;
}
.bk-fit-yes .bk-fit-h { color: #E9857C; }
.bk-fit-no .bk-fit-h { color: var(--ink); }
.bk-fit ul { list-style: none; display: grid; gap: 13px; margin: 0; padding: 0; }
.bk-fit li { position: relative; padding-left: 32px; font-size: 14.5px; line-height: 1.5; }
.bk-fit li::before {
  position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; line-height: 1;
}
.bk-fit-yes li { color: rgba(255, 255, 255, .78); }
.bk-fit-yes li::before { content: "\2713"; background: var(--accent); color: #fff; }
.bk-fit-no li { color: var(--ink-2); }
.bk-fit-no li::before { content: "\2715"; background: var(--shell-2); color: var(--muted); }

/* ---- Signature quote ----------------------------------------------------- */
.bk-sig { text-align: center; max-width: 900px; margin: 0 auto; }
.bk-sig-mark {
  font-family: var(--font-headline); font-size: clamp(80px, 10vw, 140px);
  line-height: .4; height: .4em; color: var(--accent); margin-bottom: 26px;
}
.bk-sig-quote {
  font-family: var(--font-headline); font-weight: 600; text-transform: uppercase;
  font-size: clamp(44px, 9vw, 104px); line-height: .98; letter-spacing: -.015em;
  color: var(--ink); margin: 0;
}
.bk-sig-quote em { color: var(--accent); font-style: normal; text-transform: none; }
.bk-sig-rule { width: 64px; height: 1px; background: var(--accent); margin: clamp(24px, 3vw, 36px) auto; }
.bk-sig-sub { max-width: 46ch; margin: 0 auto; color: var(--ink-2); font-size: 16px; line-height: 1.62; }

/* ---- Marquee ------------------------------------------------------------- */
.bk-marquee {
  overflow: hidden; white-space: nowrap;
  padding: 18px 0; background: var(--grad-pitch);
  border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.bk-marquee-track { display: inline-flex; align-items: center; animation: bk-slide 34s linear infinite; }
.bk-marquee-item {
  font-family: var(--font-headline); font-weight: 600; text-transform: uppercase;
  font-size: clamp(22px, 3vw, 34px); letter-spacing: .01em; color: rgba(255, 255, 255, .82);
  padding: 0 26px;
}
.bk-marquee-item:nth-child(even) { color: var(--accent); }
.bk-marquee-item::after {
  content: '\00B7'; margin-left: 26px; color: rgba(255, 255, 255, .3);
}
/* Two identical halves scroll by; -50% lands exactly on the seam. */
@keyframes bk-slide { to { transform: translateX(-50%); } }

/* ---- Closer -------------------------------------------------------------- */
.bk-closer h2 { max-width: 20ch; }
.bk-closer-bullets {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  list-style: none; margin: 0 0 26px; padding: 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  color: rgba(255, 255, 255, .66);
}
.bk-closer-bullets li { display: flex; align-items: center; gap: 8px; }
.bk-closer-bullets li::before { content: '\2713'; color: #7FD3AE; font-size: 13px; }
.bk-closer-fine { margin: 18px 0 0; font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, .5); }
.bk-closer-fine a { color: #E9857C; }

/* ---- Sticky buy ----------------------------------------------------------
   Hidden until the hero is past, and hidden again whenever a real buy button
   is on screen — book.js flips .is-visible. */
.bk-sticky {
  position: fixed; right: 26px; bottom: 26px; z-index: 45;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; text-decoration: none;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  box-shadow: 0 18px 40px -16px var(--accent-glow), 0 0 0 1px rgba(255, 255, 255, .1);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s, background .15s ease;
}
.bk-sticky.is-visible { opacity: 1; visibility: visible; transform: none; }
.bk-sticky:hover { background: var(--accent-deep); transform: translateY(-2px); }
.bk-sticky b {
  font-family: var(--font-mono); font-weight: 500; font-size: 13px;
  background: rgba(255, 255, 255, .18); padding: 3px 9px; border-radius: var(--r-pill);
}
.bk-sticky svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1040px) {
  .bk-buy { grid-template-columns: 1fr; }
  .bk-buy-cover { max-width: 340px; margin: 0 auto; }
  .bk-ideas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .bk-parts, .bk-fit { grid-template-columns: 1fr; }
  .bk-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(190px, 40vw, 290px); }
  .bk-shot, .bk-shot-tall, .bk-shot-wide { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 620px) {
  .bk-ideas { grid-template-columns: 1fr; }
  .bk-gallery { grid-template-columns: 1fr; }
  .bk-hero .hero-cta-row .btn { width: 100%; }
  .bk-note-body { text-align: left; }
  /* The sticky pill would sit on top of the closer's own button. */
  .bk-sticky { right: 12px; bottom: 12px; padding: 12px 16px; font-size: 14px; }
  .bk-sticky span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-marquee-track { animation: none; }
  .bk-shot img { transition: none; }
}
