/* ============================================================
   HAIRLESS BUT FEARLESS — book sales page
   Light-editorial brand · long-form conversion layout
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f5f0e8;
  --ink:       #1b1b1b;
  --ink-2:     #2e2e2e;
  --muted:     #6f6a60;
  --gold:      #c9a227;
  --gold-deep: #a8892e;
  --gold-soft: rgba(201, 162, 39, 0.14);
  --line:      rgba(27, 27, 27, 0.12);
  --line-light: rgba(245, 240, 232, 0.18);

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat', var(--font-sans);

  --max: 1100px;
  --ease: 240ms cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- SHARED TYPE ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.eyebrow-gold { color: var(--gold); }
.display {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-size: clamp(32px, 5vw, 54px);
  color: var(--ink);
}
.display-light { color: var(--bg-alt); }
.gold { color: var(--gold); font-style: italic; }
.signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 21px;
  color: var(--gold-deep);
  margin-top: 8px;
}

/* ---------- LAYOUT HELPERS ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band-alt { background: var(--bg-alt); }
.band-ink { background: var(--ink); color: var(--bg-alt); }
.band-ink .lede, .band-ink .order-anchor { color: rgba(245,240,232,.78); }
.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 620px;
  margin: 22px auto 0;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--ease);
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-sm { font-size: 11px; padding: 10px 18px; }
.btn-lg { font-size: 14px; padding: 18px 32px; }
.btn-block { width: 100%; justify-content: center; }
.btn-arrow { transition: transform var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- ANNOUNCE + HEADER ---------- */
.announce {
  background: var(--ink);
  color: var(--bg-alt);
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  padding: 11px 20px;
}
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .16em;
  text-decoration: none;
  color: var(--ink);
}
.hdr-actions { display: flex; align-items: center; gap: 22px; }
.hdr-link {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: var(--ease);
  white-space: nowrap;
}
.hdr-link:hover { color: var(--gold-deep); border-bottom-color: var(--gold); }
@media (max-width: 540px) {
  .hdr { padding: 12px 14px; }
  .hdr-brand { font-size: 10px; letter-spacing: .08em; }
  .hdr-actions { gap: 12px; }
  .hdr-link { font-size: 9px; letter-spacing: .04em; }
  .hdr .btn-sm { font-size: 9px; padding: 9px 12px; white-space: nowrap; letter-spacing: .06em; }
}

/* ---------- HERO ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-sub {
  font-size: 20px;
  color: var(--muted);
  margin: 24px 0 32px;
  max-width: 520px;
}
.cta-row { margin-bottom: 16px; }
.trust {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-art { display: flex; justify-content: center; }
.book-shot {
  width: 100%;
  max-width: 320px;
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(27,27,27,.45), 0 8px 20px -8px rgba(27,27,27,.3);
  transform: rotate(2deg);
  transition: var(--ease);
}
.book-shot:hover { transform: rotate(0) translateY(-4px); }

/* ---------- POSITIONING GRID ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  margin-top: clamp(40px, 6vw, 72px);
}
.about-block h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  margin-bottom: 8px;
}
.about-block p { color: rgba(245,240,232,.82); font-size: 16.5px; }

/* ---------- CHAPTERS ---------- */
.chapters {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  gap: 0;
}
.chapter {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.chapter:last-child { border-bottom: 1px solid var(--line); }
.chapter-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
}
.chapter h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  margin-bottom: 14px;
}
.chapter ul { list-style: none; }
.chapter li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 16.5px;
}
.chapter li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- TESTIMONIALS ---------- */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.quote {
  border-left: 3px solid var(--gold);
  padding-left: 28px;
}
.quote p {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 14px;
}
.quote cite {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- AUTHOR ---------- */
.author {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.author-photo img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 24px 48px -20px rgba(27,27,27,.4);
}
.author-copy p { margin-bottom: 16px; color: var(--ink-2); }
.author-copy .display { margin-bottom: 20px; }

/* ---------- ORDER ---------- */
.order {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.order-anchor { font-size: 18px; margin: 22px 0 28px; }
.price-box {
  background: rgba(245,240,232,.06);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 28px;
}
.price-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.price {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
}
.price-meta {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,240,232,.6);
}
.sh-note {
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(245,240,232,.55);
  margin-top: 12px;
}
.guarantee {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  font-size: 14.5px;
  color: rgba(245,240,232,.72);
  line-height: 1.55;
}
.guarantee-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
}
.order-art { display: flex; justify-content: center; }

/* ---------- FOOTER ---------- */
.ftr {
  background: var(--ink);
  color: rgba(245,240,232,.6);
  text-align: center;
  padding: 28px 20px;
  font-size: 13px;
  border-top: 1px solid var(--line-light);
}
.ftr a { color: var(--gold); text-decoration: none; }
.ftr a:hover { text-decoration: underline; }

/* ---------- THANK-YOU PAGE ---------- */
.ty-body { text-align: left; max-width: 560px; margin: 28px auto 36px; }
.ty-body p { margin-bottom: 16px; color: var(--ink-2); }
.ty-steps { list-style: none; margin: 0 0 20px; border-top: 1px solid var(--line); }
.ty-steps li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ty-steps strong { color: var(--ink); }
.ty-ebook {
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-size: 15px;
}
.ty-body a { color: var(--gold-deep); }

/* ============================================================
   CHECKOUT POPUP
   ============================================================ */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(27, 27, 27, .62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.checkout-overlay[hidden] { display: none; }
.checkout-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg);
  border-radius: 10px;
  padding: 36px 32px 32px;
  box-shadow: 0 40px 80px -20px rgba(27,27,27,.5);
  animation: coIn 220ms cubic-bezier(.4,0,.2,1);
}
@keyframes coIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.checkout-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: var(--ease);
}
.checkout-close:hover { color: var(--ink); }
.checkout-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.co-summary {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 18px;
}
.co-line {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  padding: 3px 0;
}
.co-line.co-muted { color: var(--muted); }

/* Order bump — tasteful nod to the classic dashed funnel bump */
.co-bump {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px dashed var(--gold);
  background: var(--gold-soft);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 22px;
  cursor: pointer;
  transition: var(--ease);
}
.co-bump:hover { background: rgba(201, 162, 39, .2); }
.co-bump input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold-deep); flex: none; cursor: pointer; }
.co-bump-body { display: flex; flex-direction: column; gap: 2px; }
.co-bump-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.co-bump-desc { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.co-bump-price {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  color: var(--gold-deep);
  flex: none;
}

.co-field { margin-bottom: 14px; }
.co-hint { font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .8; }
.co-field label,
.co-ship legend {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.co-form input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  transition: var(--ease);
}
.co-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.co-ship { border: none; margin-bottom: 14px; }
.co-ship input { margin-bottom: 8px; }
.co-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; }
.co-card-stub {
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 14px 12px;
  text-align: center;
}
.co-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  padding: 14px 0 18px;
}
.co-note { font-size: 13px; margin: 12px 0 0; text-align: center; }
.co-note.is-info  { color: var(--gold-deep); }
.co-note.is-error { color: #b4452e; }
.co-secure {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }            /* lead with headline + price/CTA on mobile */
  .hero-art { order: 2; margin-top: 28px; }
  .hero .book-shot { max-width: 240px; } /* product shot, not full-screen */
  .hero-sub, .cta-row { margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .quotes { grid-template-columns: 1fr; gap: 32px; }
  .author { grid-template-columns: 1fr; text-align: center; }
  .author-photo { max-width: 320px; margin: 0 auto; }
  .order { grid-template-columns: 1fr; }
  .order-art { order: 2; max-width: 260px; margin: 0 auto; }
  .order-copy { order: 1; }
  .book-shot { transform: none; }
}
@media (max-width: 480px) {
  .chapter { grid-template-columns: 1fr; gap: 10px; }
  .price-line { justify-content: center; }
}
