/* Survival MD free PDF preview: book reader + short sales copy. Discount palette. Mobile first. */
:root {
  --night: #0e0a0a;
  --night-2: #1a1111;
  --blood: #b3191e;
  --blood-deep: #6d0e12;
  --ink: #17110f;
  --muted: #6c615b;
  --paper: #fbf7f1;
  --cream: #f3ebe0;
  --line: #e7ddd0;
  --amber: #ffc53d;
  --amber-2: #ffad0d;
  --amber-deep: #b86e00;
  --ok: #1f9d48;
  --radius: 14px;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.noscroll { overflow: hidden; }
img, picture { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.06; }
h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 7vw, 3.3rem); }
h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.hl { color: var(--blood); }
.kick { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blood); margin-bottom: 12px; }
.kick.light { color: var(--amber); }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 18px 22px; border-radius: 12px; text-decoration: none; text-align: center;
  background: linear-gradient(180deg, var(--amber), var(--amber-2)); color: #1d1300;
  font-weight: 800; font-size: 1.15rem; line-height: 1.2;
  box-shadow: 0 4px 0 var(--amber-deep), 0 14px 30px rgba(184, 110, 0, 0.28);
  transition: transform .15s, box-shadow .15s;
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--amber-deep); }
.cta svg { width: 22px; height: 22px; flex: none; }

/* ---------- top bar ---------- */
.bar-top { background: #262020; color: #e6dbd3; border-bottom: 1px solid #3a3030; }
.bt-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; max-width: 1400px; margin: 0 auto; }
.bt-title h1 { font-family: var(--sans); font-size: 1rem; font-weight: 800; margin: 0; line-height: 1.25; }
.bt-title h1 span { color: var(--amber); }
.bt-title p { margin: 2px 0 0; font-size: .78rem; color: #a99c94; line-height: 1.3; }
.bt-buy { flex: none; display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 14px; border-radius: 8px; background: var(--amber); color: #1d1300; font-weight: 800; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.bt-buy s { color: #6a3d00; font-weight: 600; }
.bt-buy:hover { background: #ffd25e; }
@media (max-width: 600px) { .bt-buy s { display: none; } .bt-title p { display: none; } .bt-buy { padding: 8px 10px; font-size: .82rem; } }

/* ---------- reader ---------- */
.reader { position: relative; display: flex; flex-direction: column; height: calc(100svh - 62px); min-height: 520px; max-height: 1100px; background: #000; color: #fff; }
.reader.fs { position: fixed; inset: 0; z-index: 100; height: 100%; max-height: none; }
.reader:fullscreen { height: 100%; max-height: none; }
.stage { position: relative; flex: 1; min-height: 0; display: flex; overflow: hidden; padding: 12px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.stage.zoomed { overflow: auto; cursor: grab; }
.book { margin: auto; display: flex; align-items: stretch; }
.pg { display: none; position: relative; margin: 0; width: var(--pw, 300px); height: var(--ph, 390px); background: #fff; overflow: hidden; }
.pg.on { display: block; }
.pg picture, .pg > img { width: 100%; height: 100%; }
.pg img { width: 100%; height: 100%; object-fit: cover; }
.spacer { background: transparent; }
.book.two .pg.on + .pg.on { box-shadow: inset 14px 0 18px -14px rgba(0, 0, 0, .35); }
.book.two .pg.on:not(.spacer) { box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.book.two .pg.on:not(.spacer):first-of-type, .book.two .spacer.on + .pg.on { border-radius: 0 3px 3px 0; }
.book.fr { animation: flipR .35s ease; }
.book.fl { animation: flipL .35s ease; }
@keyframes flipR { from { opacity: .3; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes flipL { from { opacity: .3; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .book.fr, .book.fl { animation: none; } }

/* locked pages */
.pg.locked { background: #ece6df; }
.pg.locked .ghost { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(7px) saturate(.8); opacity: .75; }
.lock-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; background: rgba(14, 10, 10, .78); color: #fff; cursor: default; overflow: auto; }
.lock-card > svg { width: 38px; height: 38px; color: var(--amber); margin-bottom: 6px; }
.lk-k { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.lock-card h2 { font-size: clamp(1.5rem, 4.6vw, 2.3rem); margin: 6px 0 8px; }
.lock-card p { font-size: .95rem; color: #e6dbd3; margin-bottom: 10px; }
.lk-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.lk-price s { color: #a99c94; font-size: 1.2rem; text-decoration-color: var(--blood); }
.lk-price b { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--amber); }
.lock-card .cta { font-size: 1rem; padding: 14px 16px; max-width: 320px; }
.lock-card small { display: block; margin-top: 10px; font-size: .78rem; color: #c9bdb5; }

/* overview */
.grid { position: absolute; inset: 0 0 56px; z-index: 5; background: rgba(0, 0, 0, .94); overflow: auto; }
.grid-in { max-width: 1100px; margin: 0 auto; padding: 18px 16px; }
.grid-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 800; }
.grid-h button { font-size: 2rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.th { display: flex; flex-direction: column; gap: 6px; padding: 0; background: none; border: 0; color: #e6dbd3; font: inherit; font-size: .85rem; text-align: left; cursor: pointer; }
.th img { aspect-ratio: 928 / 1200; width: 100%; object-fit: cover; outline: 2px solid transparent; transition: outline-color .2s; }
.th:hover img, .th:focus-visible img { outline-color: var(--amber); }
.lockth .lk { aspect-ratio: 928 / 1200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #241717; color: var(--amber); font-weight: 800; }
.lockth .lk svg { width: 34px; height: 34px; }

/* toolbar */
.toolbar { flex: none; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 14px; background: #262020; border-top: 1px solid #3a3030; }
.pnum { flex: none; min-width: 112px; font-size: .88rem; font-weight: 700; white-space: nowrap; }
#slider { flex: 1; min-width: 60px; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; cursor: pointer;
  background: linear-gradient(90deg, var(--amber) 0 var(--fill, 0%), #5a4c4c var(--fill, 0%) 1.77%, #3f3434 1.77%); }
#slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
#slider::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; }
.tools { display: flex; gap: 2px; }
.tools button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: 6px; color: #e6dbd3; cursor: pointer; }
.tools button svg { width: 22px; height: 22px; }
.tools button:hover:not(:disabled) { background: #3a3030; color: #fff; }
.tools button[aria-pressed="true"] { color: var(--amber); }
.tools button:disabled { opacity: .3; cursor: default; }
.tools button:focus-visible, #slider:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (max-width: 819px) {
  .tools .dk, #bOut, #bIn { display: none; }
  .toolbar { gap: 10px; padding: 0 10px; }
  .pnum { min-width: 0; font-size: .8rem; }
}
.at-lock #bNext { opacity: .3; }

/* ---------- copy ---------- */
.after { padding: 60px 0 40px; }
.letter { font-family: var(--serif); font-size: 1.12rem; }
.letter p.big { font-family: var(--sans); font-size: 1.25rem; font-weight: 700; border-left: 5px solid var(--blood); padding-left: 16px; }
.behind { margin-top: 34px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px 18px 8px; }
.lk-list { list-style: none; margin: 0; padding: 0; }
.lk-list li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 11px 0; border-top: 1px dashed var(--line); font-size: 1rem; }
.lk-list li:first-child { border-top: 0; }
.lk-list b { font-family: var(--display); font-size: 1.15rem; color: var(--blood); }
.more { font-size: .95rem; color: var(--muted); margin-top: 10px; }

.why { background: var(--cream); padding: 60px 0; }
.why-grid { display: grid; gap: 28px; align-items: center; }
.why figure { margin: 0; max-width: 460px; justify-self: center; }
.why img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(40, 10, 5, .2); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li, .opts li { display: flex; gap: 10px; align-items: center; }
.ticks svg, .opts svg { width: 20px; height: 20px; flex: none; color: var(--ok); }

.offer { background: var(--night); padding: 64px 0; }
.ocard { color: #f3ece6; text-align: center; }
.ocard .am { color: var(--amber); }
.oprice { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0; border: 1px solid #3a2626; border-radius: var(--radius); overflow: hidden; }
.oprice div { padding: 14px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid #3a2626; }
.oprice div:first-child { border-left: 0; }
.oprice span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #a99c94; }
.oprice s { font-family: var(--display); font-size: 2rem; color: #a99c94; text-decoration-color: var(--blood); }
.oprice b { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--amber); }
.oprice b.sm { font-size: 2rem; color: #fff; }
.oprice small { font-size: .8rem; color: #a99c94; }
.oprice .now { background: #241717; }
.ocard .cta { max-width: 520px; margin: 0 auto; }
.opts { list-style: none; padding: 0; margin: 20px auto 0; display: grid; gap: 8px; max-width: 360px; text-align: left; color: #e6dbd3; }
.ps { margin: 28px auto 0; max-width: 620px; text-align: left; font-family: var(--serif); font-size: 1.05rem; color: #c9bdb5; border-top: 1px dashed #3a2626; padding-top: 20px; }
.ps b { color: var(--amber); font-family: var(--sans); }

.faq-sec { padding: 60px 0; }
.faq-sec h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 800; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; color: var(--blood); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: #3c322e; }

.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 12px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(14, 10, 10, .96); color: #fff; transform: translateY(110%); transition: transform .3s; }
.sticky.show { transform: none; }
.sticky .sp { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.sticky .sp s { color: #a99c94; font-size: .9rem; }
.sticky .sp b { font-family: var(--display); font-size: 1.8rem; color: var(--amber); }
.sticky .sp span { font-size: .78rem; color: #a99c94; }
.sticky .cta { flex: 1; padding: 13px 12px; font-size: 1rem; box-shadow: 0 3px 0 var(--amber-deep); }

.site-footer { background: #070505; color: #8c7f77; text-align: center; padding: 30px 16px 96px; font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 10px 0; }
.site-footer a { color: #c9bdb5; }
.site-footer .fine { font-size: .8rem; max-width: 640px; margin: 10px auto 0; }

@media (min-width: 900px) {
  .why-grid { grid-template-columns: .9fr 1.1fr; gap: 50px; }
  .sticky { display: none; }
  .site-footer { padding-bottom: 30px; }
}
@media (max-width: 819px) and (orientation: portrait) {
  .reader { height: calc((100vw - 24px) / 0.773 + 24px + 56px); min-height: 0; max-height: calc(100svh - 56px); }
}
