/* Survival MD offer page. Light editorial style: ivory paper, serif headlines, burgundy + gold accents. Mobile first. */
:root {
  --paper: #f7f1e8;
  --paper-2: #efe6d8;
  --card: #fffdf9;
  --ink: #1d1714;
  --ink-2: #3d332d;
  --muted: #74675e;
  --line: #e3d7c6;
  --wine: #8e1b22;
  --wine-deep: #5e0f15;
  --gold: #c8962e;
  --amber: #ffc53d;
  --amber-2: #ffad0d;
  --amber-deep: #b86e00;
  --ok: #2f8a4b;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: 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.12; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 5.6vw, 2.9rem); }
h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
em { font-style: italic; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 18px 22px; border-radius: 10px; 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 12px 26px rgba(184, 110, 0, 0.22);
  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; }
.center-cta { max-width: 460px; margin: 30px auto 0; }

.topline { background: var(--wine); color: #f8e9e0; text-align: center; font-size: .88rem; padding: 9px 16px; }
.topline b { color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 46px; background: linear-gradient(180deg, var(--card), var(--paper)); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 34px; align-items: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); margin-bottom: 14px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); }
.hero h1 { font-size: clamp(2.3rem, 7.6vw, 3.9rem); line-height: 1.06; margin-bottom: 18px; }
.hero h1 em { color: var(--wine); font-weight: 600; }
.sub { font-size: 1.17rem; color: var(--ink-2); max-width: 600px; }
.pricebar { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 0; margin: 24px 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 520px; }
.pricebar > div { padding: 12px 18px; }
.pricebar span { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pb-old s { font-family: var(--serif); font-size: 1.7rem; color: var(--muted); text-decoration-color: var(--wine); }
.pb-new { background: var(--wine); color: #fff; }
.pb-new span { color: #f3c9c6; }
.pb-new b { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.pb-note { font-size: .88rem; color: var(--ink-2); line-height: 1.35; font-weight: 600; }
.hero-copy .cta { max-width: 520px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-book { margin: 0; width: min(400px, 82%); padding: 14px; background: #fff; border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 30px 60px rgba(60, 30, 10, .18); transform: rotate(2deg); }
.hero-book img { border-radius: 2px; }
.seal { position: absolute; left: 4%; bottom: -14px; width: 118px; height: 118px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--gold); color: #fff; box-shadow: 0 0 0 5px var(--paper), 0 10px 24px rgba(60, 30, 10, .25); transform: rotate(-10deg); }
.seal span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.seal b { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }

/* ---------- glance ---------- */
.glance { background: var(--card); border-bottom: 1px solid var(--line); }
.glance-row { display: grid; grid-template-columns: 1fr 1fr; }
.gl { display: flex; flex-direction: column; gap: 2px; padding: 18px 14px; text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gl:nth-child(2n) { border-right: 0; }
.gl-n { font-family: var(--serif); color: var(--gold); font-size: 1.2rem; font-weight: 700; }
.gl b { font-size: 1.02rem; }
.gl small { font-size: .85rem; color: var(--muted); }
.gl:hover b { color: var(--wine); }

/* ---------- sections ---------- */
.sec { padding: 70px 0; }
.sec.alt { background: var(--paper-2); }
.sec-h { max-width: 760px; margin-bottom: 30px; }
.sec-h.center { margin-left: auto; margin-right: auto; text-align: center; }
.part { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); margin-bottom: 10px; }
.lede { font-size: 1.15rem; color: var(--ink-2); }

/* the book */
.book-intro { display: grid; gap: 28px; margin-bottom: 44px; }
.bi-text p { font-size: 1.08rem; color: var(--ink-2); }
.dropcap::first-letter { float: left; font-family: var(--serif); font-size: 3.6rem; line-height: .85; padding: 6px 10px 0 0; color: var(--wine); font-weight: 700; }
.specs { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }
.specs div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); }
.specs div:first-child { border-top: 0; }
.specs dt { color: var(--muted); font-size: .95rem; }
.specs dd { margin: 0; font-weight: 800; text-align: right; }
.mini-h { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin-bottom: 18px; }
.pages { display: grid; gap: 18px; grid-template-columns: 1fr; }
.page { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.page img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page figcaption { padding: 14px 18px 18px; }
.pg-n { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--wine); padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; }
.page b { display: block; font-family: var(--serif); font-size: 1.25rem; margin-bottom: 4px; }
.page p { margin: 0; font-size: .97rem; color: var(--ink-2); }
.toc { display: grid; gap: 18px; margin-top: 40px; }
.toc-col { padding: 22px 22px 10px; border-radius: var(--radius); background: var(--card); border-top: 4px solid var(--wine); }
.toc-k { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.toc-col h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin-top: 2px; }
.toc-col ul { margin: 0 0 12px; padding-left: 20px; }
.toc-col li { margin-bottom: 6px; color: var(--ink-2); }
.more { margin-top: 18px; color: var(--muted); font-style: italic; }

/* guides */
.bundle { margin: 0 auto 34px; max-width: 760px; }
.guides { display: grid; gap: 18px; }
.guide { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.g-cover img { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .18)); }
.g-k { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.guide h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; margin: 4px 0 6px; }
.g-sub { color: var(--muted); font-size: .98rem; margin-bottom: 10px; }
.guide ul, .promise ul, .who ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.guide li, .promise li, .who li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.guide li svg, .promise li svg, .who-yes li svg { width: 19px; height: 19px; flex: none; margin-top: 4px; color: var(--ok); }

/* guarantee */
.promise { display: grid; gap: 22px; align-items: center; padding: 30px 24px; background: var(--card); border: 2px solid var(--gold); border-radius: 20px; }
.pr-stamp { width: 130px; height: 130px; margin: 0 auto; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 4px double var(--wine); color: var(--wine); transform: rotate(-8deg); }
.pr-stamp b { font-family: var(--serif); font-size: 3.4rem; line-height: 1; }
.pr-stamp span { font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
.pr-lead { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.promise ul { margin: 18px 0; }
.pr-sign { font-family: var(--serif); font-style: italic; color: var(--wine); font-size: 1.15rem; margin: 0; }

/* price */
.receipt { max-width: 640px; margin: 0 auto; padding: 26px 22px 20px; background: #fff; border-radius: 4px; box-shadow: 0 20px 50px rgba(60, 30, 10, .14); font-size: .98rem; }
.rc-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rc-row span:last-child { color: var(--ok); font-weight: 700; white-space: nowrap; }
.rc-row.sum span:last-child { color: var(--muted); }
.rc-row.sum s { text-decoration-color: var(--wine); }
.rc-row.tot { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 14px; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.rc-row.tot span:last-child { color: var(--wine); }
.rc-foot { text-align: center; margin: 12px 0 0; font-size: .86rem; color: var(--muted); }
.put { display: grid; gap: 12px; max-width: 900px; margin: 30px auto 0; }
.put div { text-align: center; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.put b { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--wine); line-height: 1.05; }
.put span { font-size: .95rem; color: var(--ink-2); }

/* who */
.who { display: grid; gap: 18px; }
.who-yes, .who-no { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.who-yes { border-top: 4px solid var(--ok); }
.who-no { border-top: 4px solid var(--muted); }
.who h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.who-no li { color: var(--muted); }
.x { width: 19px; flex: none; text-align: center; font-weight: 800; color: var(--muted); font-size: 1.2rem; line-height: 1.3; }

/* author */
.author { display: grid; gap: 30px; align-items: center; }
.author figure { margin: 0; max-width: 360px; justify-self: center; }
.author img { border-radius: var(--radius); box-shadow: 0 20px 44px rgba(60, 30, 10, .2); }
.author p { color: var(--ink-2); }
.quote { margin: 18px 0 0; padding-left: 18px; border-left: 4px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--wine-deep); }

/* reviews */
.reviews { display: grid; gap: 16px; }
.rv { margin: 0; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.stars { color: var(--gold); letter-spacing: 3px; }
.rv blockquote { margin: 8px 0 12px; font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.5; }
.rv figcaption { font-weight: 800; color: var(--muted); font-size: .95rem; }

/* hesitations */
.waits { display: grid; gap: 10px; }
.wait { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.wait summary { list-style: none; cursor: pointer; position: relative; padding: 18px 50px 18px 20px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.2rem; }
.wait summary::-webkit-details-marker { display: none; }
.wait summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-family: var(--sans); font-style: normal; font-size: 1.6rem; color: var(--wine); }
.wait[open] summary::after { content: "\2212"; }
.wait p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); }

/* final */
.final { padding: 70px 0; background: var(--wine); color: #f8e9e0; }
.final-grid { display: grid; gap: 30px; align-items: center; }
.final figure { margin: 0; max-width: 360px; justify-self: center; }
.final img { border-radius: var(--radius); box-shadow: 0 26px 50px rgba(0, 0, 0, .35); }
.final .part { color: var(--amber); }
.final h2 { color: #fff; }
.final h2 em { color: var(--amber); }
.final p { color: #f1d6d2; }
.final .cta { max-width: 460px; margin-top: 22px; }
.fine-note { margin-top: 12px; font-size: .9rem; color: #e6b9b3 !important; }
.ps { margin-top: 22px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .3); font-size: 1.02rem; }
.ps b { color: var(--amber); }

/* faq */
.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(--wine); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-2); }

.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(94, 15, 21, .97); 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: #e6b9b3; font-size: .9rem; }
.sticky .sp b { font-family: var(--serif); font-size: 1.8rem; color: #fff; }
.sticky .cta { flex: 1; padding: 13px 12px; font-size: 1rem; box-shadow: 0 3px 0 var(--amber-deep); }

.site-footer { background: #1d1714; color: #a3968c; 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: #e3d7c6; }
.site-footer .fine { font-size: .8rem; max-width: 640px; margin: 10px auto 0; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (min-width: 640px) {
  .glance-row { grid-template-columns: repeat(4, 1fr); }
  .gl { border-bottom: 0; }
  .gl:nth-child(2n) { border-right: 1px solid var(--line); }
  .gl:last-child { border-right: 0; }
  .pages { grid-template-columns: 1fr 1fr; }
  .toc, .who { grid-template-columns: 1fr 1fr; }
  .guide { grid-template-columns: 150px 1fr; }
  .put { grid-template-columns: repeat(3, 1fr); }
  .promise { grid-template-columns: 150px 1fr; padding: 34px 34px; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 70px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 60px; }
  .book-intro { grid-template-columns: 1.4fr 1fr; gap: 50px; }
  .pages { grid-template-columns: repeat(3, 1fr); }
  .guides { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .author { grid-template-columns: .8fr 1.2fr; gap: 60px; }
  .final-grid { grid-template-columns: .8fr 1.2fr; gap: 60px; }
  .sticky { display: none; }
  .site-footer { padding-bottom: 30px; }
}

/* rare chapters */
.rare { margin-top: 30px; padding: 30px 20px; border-radius: 20px; background: var(--wine-deep); color: #f8e9e0; }
.rare-h { max-width: 720px; margin-bottom: 22px; }
.part.light { color: var(--amber); }
.rare-h h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.12; color: #fff; }
.rare-h p { color: #f1d6d2; margin: 0; }
.rare-grid { display: grid; gap: 12px; }
.rc { padding: 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.rc-p { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #1d1300; background: var(--amber); padding: 2px 8px; border-radius: 4px; }
.rc h4 { font-family: var(--serif); font-size: 1.3rem; margin: 8px 0 6px; color: #fff; }
.rc p { margin: 0; font-size: .96rem; color: #f1d6d2; }
@media (min-width: 640px) { .rare-grid { grid-template-columns: 1fr 1fr; } .rare { padding: 36px 32px; } }
@media (min-width: 960px) { .rare-grid { grid-template-columns: repeat(4, 1fr); } .rc:nth-child(1) { grid-column: span 2; } }
