/* eBook sales pages built from templates/ebook-page.html (tools/build-site.mjs).
   Loaded after css/styles.css; reuses its tokens. Every class here is prefixed ep- so
   nothing leaks into other pages. */

.ep .hero h1 span { color: #ffd45c; }
.ep-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.ep-center { justify-content: center; }
.ep-price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.ep-price[hidden] { display: none; }
.ep .ep-detail { margin: 16px 0 0; font-size: 15px; color: var(--on-dark-muted); font-weight: 600; }

/* problem */
.ep-intro { font-size: 17.5px; color: var(--muted); }
.ep-compare { display: grid; gap: 14px; }
.ep-cmp { padding: 20px 22px; border-radius: 16px; font-size: 16.5px; line-height: 1.55; background: var(--white); border: 1px solid var(--line); }
.ep-tag { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.ep-tag .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.ep-weak { border-color: #f3c7c7; }
.ep-weak .ep-tag { color: #b42318; }
.ep-strong { border-color: #a9e2c8; box-shadow: var(--shadow); }
.ep-strong .ep-tag { color: #12724d; }

/* what's inside */
.ep-blocks { display: grid; gap: 18px; }
.ep-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.ep-block > p { color: var(--muted); font-size: 16px; }
.ep-block-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ep-block-head h3 { font-size: 20px; letter-spacing: -.02em; }
.ep-num { flex: none; min-width: 52px; height: 52px; padding: 0 10px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-900); color: #ffc21a; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.ep-num-plus { font-size: 28px; }
.ep-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-chips li { padding: 8px 14px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 15px; }
.ep-chips .c1 { background: #6d28d9; } .ep-chips .c2 { background: #1d4ed8; } .ep-chips .c3 { background: #047857; }
.ep-chips .c4 { background: #b45309; } .ep-chips .c5 { background: #be185d; } .ep-chips .c6 { background: #0e7490; }
.ep-fw { display: grid; gap: 10px; margin: 0; }
.ep-fw div { padding: 12px 16px; border-radius: 12px; background: var(--cream); }
.ep-fw dt { font-weight: 800; font-size: 18px; color: var(--navy-900); letter-spacing: -.01em; }
.ep-fw dd { margin: 2px 0 0; font-size: 14.5px; color: var(--muted); }
.ep-tech { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 12px; }
.ep-tech li { counter-increment: t; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.ep-tech li::before { content: counter(t); flex: none; width: 28px; height: 28px; border-radius: 8px; background: #ffc21a; color: var(--navy-900); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.ep-lib { display: grid; gap: 14px; margin-top: 6px; }
.ep-lib-card { border-radius: 16px; padding: 20px 22px; color: #fff; }
.ep-lib-card b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ep-lib-card h4 { margin: 4px 0 10px; font-size: 19px; }
.ep-lib-card ul { list-style: disc; padding-left: 18px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.92); }
.ep-work { background: linear-gradient(160deg, #4338ca, #312e81); }
.ep-study { background: linear-gradient(160deg, #0f766e, #134e4a); }
.ep-biz { background: linear-gradient(160deg, #c2410c, #7c2d12); }
.ep-extras { display: grid; gap: 10px; }
.ep-extras li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.ep-extras .ic { width: 22px; height: 22px; color: #12724d; stroke-width: 2.4; margin-top: 1px; }
@media (min-width: 760px) {
  .ep-blocks { grid-template-columns: 1fr 1fr; }
  .ep-wide { grid-column: 1 / -1; }
  .ep-lib { grid-template-columns: repeat(3, 1fr); }
  .ep-extras { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
  .ep-compare { grid-template-columns: 1fr 2fr; }
}
@media (min-width: 1000px) { .ep-blocks { grid-template-columns: repeat(3, 1fr); } .ep-fw { grid-template-columns: 1fr; } }

/* who */
.ep-aud { display: grid; gap: 18px; }
.ep-aud-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.ep-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--navy-900); color: #ffc21a; margin-bottom: 14px; }
.ep-aud-card h3 { font-size: 21px; margin-bottom: 12px; }
.ep-aud-card ul { list-style: disc; padding-left: 20px; color: var(--muted); font-size: 16px; }
.ep-aud-card li { margin-bottom: 8px; }
@media (min-width: 900px) { .ep-aud { grid-template-columns: repeat(3, 1fr); } }

/* how */
.ep-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ep-steps li { padding: 24px 22px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.ep-step { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffc21a; margin-bottom: 8px; }
.ep-steps h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.ep-steps p { margin: 0; color: var(--on-dark-muted); font-size: 16px; }
@media (min-width: 640px) { .ep-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ep-steps { grid-template-columns: repeat(4, 1fr); } }

/* preview */
.ep-pages { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
.ep-pages figure { margin: 0; }
.ep-pages img { width: 100%; border-radius: 6px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ep-pages figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
@media (min-width: 640px) { .ep-pages { grid-template-columns: repeat(3, 1fr); } }
.ep-excerpt { max-width: 680px; margin: 44px auto 0; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ep-ex-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ep-ex-head h3 { font-size: 19px; }
.ep-badge { flex: none; padding: 3px 9px; border-radius: 7px; background: var(--navy-900); color: #fff; font-weight: 800; font-size: 14px; }
.ep-when { font-size: 15px; color: var(--muted); }
.ep-prompt { padding: 14px 16px; border-left: 4px solid #4f46e5; border-radius: 0 12px 12px 0; background: #eef2ff; font-size: 16px; line-height: 1.65; }
.ep-src { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }

/* final */
.ep-final-detail { margin: 22px 0 0 !important; font: 500 14.5px var(--font-sans) !important; color: var(--on-dark-muted); }

/* price pill inside the buy buttons (filled from the catalogue by js/checkout.js) */
.ep .btn-price b { font-weight: 800; }
.ep-offer { display: inline-block; margin-right: 8px; padding: 3px 9px; border-radius: 6px; background: #e3f6ee; color: #1a7f5a; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.ep .final-cta .btn { margin-top: 4px; }
/* keep the sticky bar's section links visible next to the wider price button */
@media (min-width: 980px) { .pb-title { max-width: 300px; } }

/* ---- free-post link on a sales page ---- */
.ep-related { background: var(--cream, #faf6ef); padding: 22px 0; text-align: center; border-top: 1px solid rgba(10,18,51,.08); }
.ep-related-text { margin: 0; font: 500 17px/1.5 var(--font-sans); color: #2c3250; }
.ep-related-text b { color: var(--navy-900); }
.ep-related-text a { color: var(--coral-text); font-weight: 700; white-space: nowrap; }
