/* Peptides Made Simple — book site
   Brand: the covers. Black void, molecules lit in each book's color.
   Book 1 red, Book 2 cyan, Book 3 amber. One color per book, never mixed except on the bundle. */

@font-face { font-family: "Archivo"; src: url("/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic-var.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --void: #000;
  --panel: #0e1011;
  --panel-2: #15181a;
  --line: #262b2e;
  --text: #eeece7;
  --muted: #a3aaad;
  --faint: #6f777a;
  --red: #ff3326;
  --cyan: #22d3e6;
  --amber: #ffa31a;
  --white: #fff;
  --ok: #7fe0a0;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --read: "Newsreader", Georgia, "Times New Roman", serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.42rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.8vw, 3rem);
  --step-4: clamp(2.4rem, 1.8rem + 3.2vw, 4.6rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--display);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--white); color: #000; padding: 10px 14px; border-radius: var(--radius-s); z-index: 100; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 760; line-height: 1.04; letter-spacing: -0.012em; margin: 0; font-variation-settings: "wdth" 112; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; font-weight: 700; }
p { margin: 0; }
.prose p, .read { font-family: var(--read); font-size: calc(var(--step-0) * 1.06); line-height: 1.68; color: #dcd9d2; font-optical-sizing: auto; max-width: 64ch; }
.prose p + p { margin-top: 1em; }
.lede { font-family: var(--read); font-size: var(--step-1); line-height: 1.5; color: #d7d4cc; max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.kicker { color: var(--muted); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.01em; }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { margin-top: 14px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(0,0,0,0.82); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; gap: 3px; }
.brand b { font-weight: 800; font-size: 15px; letter-spacing: 0.16em; font-variation-settings: "wdth" 125; }
.brand span { font-size: 10.5px; letter-spacing: 0.22em; font-variation-settings: "wdth" 125; font-weight: 600; background: linear-gradient(90deg, var(--red), var(--cyan) 52%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { color: #000; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } .nav { gap: 12px; } }
.head-min .nav { display: none; }
.head-note { margin-left: auto; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn { --bg: var(--white); --fg: #000; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--bg); color: var(--fg); font: 650 16px/1 var(--display); font-variation-settings: "wdth" 106; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -10px rgba(255,255,255,0.45); }
.btn:active { transform: translateY(0); }
.btn small { font-weight: 500; opacity: .7; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-ghost { --bg: transparent; --fg: var(--text); border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Stars */
.stars { --pct: 94%; display: inline-block; font-size: 15px; letter-spacing: 2px; line-height: 1; background: linear-gradient(90deg, #ffc23d var(--pct), #3a3f42 var(--pct)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; flex-wrap: wrap; }
.proof strong { color: var(--text); font-weight: 650; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { max-width: 15ch; font-size: clamp(2.4rem, 1.7rem + 2.9vw, 4.1rem); }
.hero .lede { margin-top: 22px; }
.hero .cta-row { margin-top: 32px; }
.hero .proof { margin-top: 22px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .slot { --w: 25vw; } .hero .slot.mid { --w: 30vw; } .hero .slot.small-book { --w: 19vw; }
  .book-hero .slot.mid { --w: 46vw; }
  .hero h1 { max-width: 16ch; }
  .hero { padding-top: 8px; }
  .hero-grid > .shelf { order: -1; padding: 12px 0 34px; }
  .hero-grid > .shelf::after { bottom: 22px; }
  .hero-grid { gap: 8px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2.15rem; }
  .hero .lede { margin-top: 14px; font-size: 1.06rem; }
  .hero .cta-row { margin-top: 22px; }
  .hero .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .hero .proof { margin-top: 16px; font-size: 14px; }
}

/* The shelf: three books standing in their own light */
.shelf { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2.2vw, 30px); padding: 20px 0 46px; perspective: 1400px; }
.shelf::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 30px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22) 20%, rgba(255,255,255,0.22) 80%, transparent); }
.slot { position: relative; --w: clamp(104px, 12.5vw, 188px); }
.slot::before { content: ""; position: absolute; left: -35%; right: -35%; bottom: -30px; height: 64px; background: radial-gradient(50% 50% at 50% 50%, var(--c) 0%, transparent 72%); opacity: .5; filter: blur(16px); z-index: 0; }
.slot::after { content: ""; position: absolute; left: 10%; right: 10%; top: 8%; bottom: 0; background: var(--c); opacity: .16; filter: blur(46px); z-index: 0; }
.slot.red { --c: var(--red); } .slot.cyan { --c: var(--cyan); } .slot.amber { --c: var(--amber); }
.slot.mid { --w: clamp(120px, 14.5vw, 216px); }
.slot.small-book { --w: clamp(84px, 9.5vw, 142px); }
.book3d { --d: calc(var(--w) * 0.12); position: relative; z-index: 1; width: var(--w); aspect-ratio: 2 / 3; transform-style: preserve-3d; transform: rotateY(var(--ry, -22deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.book3d picture { position: absolute; inset: 0; display: block; transform-style: preserve-3d; }
.book3d img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 1px 3px 3px 1px; transform: translateZ(calc(var(--d) / 2)); box-shadow: 18px 30px 50px -12px rgba(0,0,0,.95), 0 10px 80px -30px var(--c); }
.book3d::before { content: ""; position: absolute; top: 1.2%; bottom: 1.2%; right: 0; width: calc(var(--d) - 3px); transform: translateX(calc(var(--d) / 2 - 2px)) rotateY(90deg); background: repeating-linear-gradient(90deg, #f1efe9 0 1px, #cfcac0 1px 2px); }
.book3d::after { content: ""; position: absolute; inset: 0; transform: translateZ(calc(var(--d) / 2 + 0.5px)); border-radius: 1px 3px 3px 1px; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.08) 1.6%, transparent 4%, transparent 96%, rgba(0,0,0,.18)); pointer-events: none; }
.slot.left .book3d { --ry: 24deg; }
.slot.left .book3d::before { right: auto; left: 0; width: var(--d); transform: translateX(calc(var(--d) / -2)) rotateY(-90deg); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #000), #0a0a0a 55%, color-mix(in srgb, var(--c) 45%, #000)); }
.slot.left .book3d img { box-shadow: -18px 30px 50px -12px rgba(0,0,0,.95), 0 10px 80px -30px var(--c); }
.slot.mid .book3d { --ry: 0deg; }
.shelf:hover .book3d { --ry: -10deg; }
.shelf:hover .slot.left .book3d { --ry: 10deg; }
.shelf:hover .slot.mid .book3d { --ry: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  .shelf.rise .slot { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
  .shelf.rise .slot:nth-child(2) { animation-delay: .12s; }
  .shelf.rise .slot:nth-child(3) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding: clamp(44px, 6vw, 72px) 0; }
.section.panel { background: var(--panel); }
.rule-top { border-top: 1px solid var(--line); }

/* Proof strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { padding: 22px 24px; display: grid; gap: 6px; border-left: 1px solid var(--line); }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item .t { font-weight: 650; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.strip-item .t::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); flex: none; }
.strip-item .r { color: var(--muted); font-size: 15px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) { .strip-grid { grid-template-columns: 1fr; } .strip-item { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; } .strip-item:first-child { border-top: 0; } }

/* Series */
.series { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.vol { position: relative; display: flex; flex-direction: column; background: var(--panel); border-radius: var(--radius-l); padding: 26px 26px 24px; border: 1px solid var(--line); overflow: hidden; }
.vol::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); box-shadow: 0 0 22px var(--c); }
.vol.red { --c: var(--red); } .vol.cyan { --c: var(--cyan); } .vol.amber { --c: var(--amber); }
.vol .cover { width: 46%; max-width: 168px; border-radius: 3px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.9), 0 0 50px -16px var(--c); margin-bottom: 22px; }
.vol .which { font-size: 14px; color: var(--c); font-weight: 600; }
.vol h3 { margin-top: 6px; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); }
.vol .read { margin-top: 12px; font-size: 1.04rem; }
.facts { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed rgba(255,255,255,0.1); font-size: 15px; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 600; text-align: right; }
.vol .links { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 960px) { .series { grid-template-columns: 1fr; } .vol { display: grid; grid-template-columns: 132px 1fr; column-gap: 22px; } .vol .cover { width: 100%; grid-row: span 6; margin: 0; } }
@media (max-width: 520px) { .vol { grid-template-columns: 1fr; } .vol .cover { width: 120px; margin-bottom: 18px; } }

/* Start-here chooser */
.chooser { display: grid; gap: 0; border-top: 1px solid var(--line); }
.choice { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.choice .q { font-family: var(--read); font-size: var(--step-1); color: #e6e3dc; }
.choice .a { display: flex; align-items: center; gap: 14px; font-weight: 650; }
.choice .a img { width: 44px; border-radius: 2px; box-shadow: 0 0 24px -6px var(--c); }
.choice.red { --c: var(--red); } .choice.cyan { --c: var(--cyan); } .choice.amber { --c: var(--amber); }
.choice .go { color: var(--muted); font-size: 15px; white-space: nowrap; }
.choice:hover .go { color: var(--text); }
@media (max-width: 760px) { .choice { grid-template-columns: 1fr; gap: 10px; } }

/* Bundle offer */
.offer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 64px); overflow: hidden; }
.offer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 33.3%, var(--cyan) 33.3% 66.6%, var(--amber) 66.6%); }
.offer .shelf { padding-bottom: 40px; }
.price { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 6px; }
.price .now { font-size: clamp(2.6rem, 2rem + 2.4vw, 3.8rem); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.02em; }
.price .was { color: var(--muted); font-size: 18px; }
.price .was s { text-decoration-thickness: 1.5px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 15px; height: 8px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.ticks li b { font-weight: 650; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; flex: none; }
.offer .slot { --w: clamp(78px, 8.4vw, 132px); }
.offer .slot.mid { --w: clamp(92px, 10vw, 156px); }
.offer .slot.small-book { --w: clamp(62px, 6.4vw, 100px); }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } .offer .shelf { order: -1; padding-top: 0; } .offer .slot { --w: 25vw; } .offer .slot.mid { --w: 29vw; } .offer .slot.small-book { --w: 19vw; } }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-size: 15px; color: var(--muted); font-weight: 500; }
.compare thead th.us { color: var(--text); font-weight: 700; }
.compare td.us { background: rgba(255,255,255,0.035); font-weight: 600; }
.compare td.no { color: var(--faint); }
.compare tbody th { font-weight: 500; color: var(--muted); }
@media (max-width: 600px) { .compare { font-size: 14.5px; } .compare th, .compare td { padding: 12px 9px; } .compare thead th { font-size: 13.5px; } }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
.table-scroll .compare tr:last-child > * { border-bottom: 0; }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); font-weight: 650; font-size: 14px; margin-bottom: 14px; }
.steps h3 { font-size: 1.15rem; }
.steps p { margin-top: 8px; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Reader kit */
.kit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.kit-items { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.kit-items li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.kit-items .doc { width: 52px; aspect-ratio: 8.5/11; border-radius: 3px; background: #f2f0ea; position: relative; box-shadow: 0 10px 20px -10px rgba(0,0,0,.9); }
.kit-items .doc::before { content: ""; position: absolute; left: 8px; right: 8px; top: 9px; height: 4px; background: var(--c, #999); border-radius: 2px; }
.kit-items .doc::after { content: ""; position: absolute; left: 8px; right: 8px; top: 18px; bottom: 9px; background: repeating-linear-gradient(180deg, #cfcbc2 0 2px, transparent 2px 7px); }
.kit-items li:nth-child(1) .doc { --c: var(--cyan); } .kit-items li:nth-child(2) .doc { --c: var(--red); } .kit-items li:nth-child(3) .doc { --c: var(--amber); } .kit-items li:nth-child(4) .doc { --c: #fff; }
.kit-items b { display: block; font-weight: 650; }
.kit-items span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .kit { grid-template-columns: 1fr; } }

/* Forms */
.card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 34px); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label, .legend { font-size: 15px; font-weight: 600; }
.field input[type="text"], .field input[type="email"] { width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--radius-m); border: 1px solid #3a4044; background: #070808; color: var(--text); font: 400 17px var(--display); }
.field input:focus { outline: none; border-color: var(--white); box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.checks { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.checks label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #30363a; border-radius: var(--radius-m); cursor: pointer; font-size: 15.5px; }
.checks label:hover { border-color: #4a5257; }
.checks input { width: 18px; height: 18px; accent-color: #fff; flex: none; }
.checks .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); flex: none; margin-left: auto; }
.form .fine { color: var(--faint); font-size: 13.5px; line-height: 1.5; }
.form-error { color: #ffb4a8; font-size: 15px; display: none; }
.form-error.show { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Author */
.author { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.author figure { margin: 0; position: relative; }
.author figure img { border-radius: var(--radius-l); width: 100%; max-width: 420px; filter: grayscale(.15) contrast(1.04); }
.author blockquote { margin: 0 0 22px; font-family: var(--read); font-style: italic; font-size: var(--step-2); line-height: 1.32; color: #f2efe8; max-width: 26ch; }
@media (max-width: 860px) { .author { grid-template-columns: 1fr; } .author figure img { max-width: 300px; } }

/* Academy band */
.academy { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.academy ul { margin: 18px 0 0; padding-left: 20px; color: #d9d6cf; display: grid; gap: 6px; }
@media (max-width: 860px) { .academy { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .ans { padding: 0 0 22px; }
.faq .ans p { font-family: var(--read); color: #d8d5ce; font-size: 1.08rem; line-height: 1.65; max-width: 66ch; }
.faq .ans p + p { margin-top: .8em; }

/* Book page */
.book-hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.book-hero .cover-wrap { display: flex; justify-content: center; }
.book-hero .shelf { padding-bottom: 40px; }
.book-hero .slot.mid { --w: clamp(220px, 24vw, 340px); }
.formats { display: grid; gap: 10px; margin-top: 26px; max-width: 520px; }
.format { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none; background: var(--panel); transition: border-color .15s ease; }
.format:hover { border-color: rgba(255,255,255,.4); }
.format .f { font-weight: 650; }
.format .p { color: var(--muted); }
.format .g { font-size: 14px; color: var(--muted); }
.format.featured { border-color: rgba(255,255,255,.55); background: var(--panel-2); }
.format.featured .p { color: var(--text); font-weight: 650; }
@media (max-width: 900px) { .book-hero { grid-template-columns: 1fr; } }
.inside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.inside > div { padding: 22px 0; border-top: 1px solid var(--line); }
.inside h3 { font-size: 1.15rem; }
.inside p { margin-top: 8px; color: var(--muted); }
@media (max-width: 760px) { .inside { grid-template-columns: 1fr; } }
.accent-red { --c: var(--red); } .accent-cyan { --c: var(--cyan); } .accent-amber { --c: var(--amber); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--c); }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }

/* Callout */
.callout { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--panel); }
.callout p { max-width: 56ch; }

/* Thank-you downloads */
.downloads { display: grid; gap: 12px; margin-top: 22px; }
.dl { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--panel); text-decoration: none; }
.dl:hover { border-color: rgba(255,255,255,.45); }
.dl .ic { width: 40px; aspect-ratio: 8.5/11; border-radius: 3px; background: #f1efe9; position: relative; }
.dl .ic::before { content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 3px; border-radius: 2px; background: var(--c); }
.dl b { display: block; }
.dl span { color: var(--muted); font-size: 14.5px; }
.dl .get { font-weight: 650; font-size: 15px; }

/* Legal / plain pages */
.plain { max-width: 760px; }
.plain h1 { font-size: var(--step-3); margin-bottom: 18px; }
.plain h2 { font-size: var(--step-1); margin: 36px 0 10px; line-height: 1.25; }
.plain p, .plain li { font-family: var(--read); font-size: 1.08rem; line-height: 1.7; color: #d8d5ce; }
.plain ul { padding-left: 20px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-size: 14px; font-weight: 650; color: var(--text); margin-bottom: 12px; letter-spacing: 0; font-variation-settings: "wdth" 100; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--muted); }
.foot-grid a:hover { color: var(--text); }
.disclaimer { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; color: var(--faint); max-width: 90ch; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* Sticky buy bar (mobile) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(10,11,12,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
.buybar.show { transform: none; }
.buybar .covers { display: flex; }
.buybar .covers img { width: 26px; border-radius: 2px; margin-right: -8px; box-shadow: -2px 0 6px rgba(0,0,0,.6); }
.buybar .txt { flex: 1; min-width: 0; line-height: 1.25; margin-left: 10px; }
.buybar .txt b { display: block; font-size: 14.5px; }
.buybar .txt span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .buybar { display: flex; } body.has-buybar { padding-bottom: 76px; } }

/* Utilities */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 18px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
