/* ShelfPilot marketing site */

.sp-mkt-nav { position: sticky; top: 0; z-index: 1030; background: rgba(250, 246, 238, .9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.sp-mkt-nav.scrolled { border-bottom-color: var(--sp-border); }
.sp-mkt-nav .nav-link { color: var(--sp-ink-2); font-weight: 500; }
.sp-mkt-nav .nav-link:hover, .sp-mkt-nav .nav-link.active { color: var(--sp-ink); }

.sp-hero { padding: 5rem 0 4rem; position: relative; overflow: hidden; }
.sp-hero::before {
  content: ""; position: absolute; top: -200px; right: -160px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 139, 43, .16), transparent 65%); pointer-events: none;
}
.sp-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--sp-accent-600); background: var(--sp-accent-soft); padding: .35rem .8rem; border-radius: 999px; }
.sp-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.06; margin: 1.1rem 0 1.1rem; }
.sp-hero h1 em { font-style: italic; color: var(--sp-accent-600); }
.sp-hero .lead { font-size: 1.15rem; color: var(--sp-ink-2); max-width: 560px; }
.sp-hero .btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.sp-trust { font-size: .85rem; color: var(--sp-muted); display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.sp-trust i { color: var(--sp-forest); }

.sp-section { padding: 4.5rem 0; }
.sp-section.alt { background: var(--sp-bg-deep); }
.sp-section.dark { background: var(--sp-ink); color: #e8e2d4; }
.sp-section.dark h2 { color: #fff; }
.sp-section-head { text-align: center; max-width: 680px; margin: 0 auto 2.75rem; }
.sp-section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.sp-section-head p { color: var(--sp-muted); font-size: 1.05rem; }
.sp-section.dark .sp-section-head p { color: #bfc6d2; }

/* before / after */
.sp-ba { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 1rem; align-items: center; }
@media (max-width: 991.98px) { .sp-ba { grid-template-columns: 1fr; } .sp-ba-arrow { transform: rotate(90deg); } }
.sp-ba-arrow { display: flex; justify-content: center; color: var(--sp-accent); font-size: 2rem; }
.sp-sheet { background: #fff; border: 1px solid #cfd6cf; border-radius: 10px; overflow: hidden; box-shadow: var(--sp-shadow); font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: .78rem; }
.sp-sheet-bar { background: #217346; color: #fff; padding: .45rem .8rem; font-weight: 600; font-size: .8rem; display: flex; gap: .5rem; align-items: center; }
.sp-sheet table { width: 100%; border-collapse: collapse; }
.sp-sheet th, .sp-sheet td { border: 1px solid #e1e5e1; padding: .3rem .45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.sp-sheet th { background: #f3f5f3; font-weight: 600; color: #444; }
.sp-sheet td.bad { background: #fff4f2; color: #b23b3b; }
.sp-sheet td.rn, .sp-sheet th.rn { background: #f3f5f3; color: #888; text-align: center; width: 28px; }
.sp-catalog-mock { background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: 14px; box-shadow: var(--sp-shadow-lg); overflow: hidden; }
.sp-catalog-mock .bar { background: var(--sp-ink); color: #fff; padding: .7rem 1rem; display: flex; align-items: center; justify-content: space-between; font-family: var(--sp-font-display); }
.sp-catalog-mock .search { margin: .9rem 1rem .4rem; border: 1px solid var(--sp-border-strong); border-radius: 999px; padding: .4rem .9rem; font-size: .8rem; color: var(--sp-muted); }
.sp-catalog-mock .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; padding: .7rem 1rem 1rem; }
.sp-mini-book { font-size: .72rem; }
.sp-mini-book .cover { aspect-ratio: 2 / 3; border-radius: 5px; margin-bottom: .35rem; display: flex; align-items: flex-end; padding: .4rem; color: #fff; font-family: var(--sp-font-display); font-weight: 600; font-size: .78rem; line-height: 1.1; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.sp-mini-book .cover.has-img { padding: 0; overflow: hidden; }
.sp-mini-book .cover.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-mini-book .t { font-weight: 600; color: var(--sp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-mini-book .p { color: var(--sp-forest); font-weight: 600; }

/* steps */
.sp-step-card { padding: 1.75rem; height: 100%; position: relative; }
.sp-step-num { width: 44px; height: 44px; border-radius: 12px; background: var(--sp-ink); color: #fff; font-family: var(--sp-font-display); font-weight: 600; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.sp-step-card h3 { font-size: 1.2rem; }
.sp-step-card p { color: var(--sp-muted); margin: 0; }

/* features */
.sp-feature { padding: 1.5rem; height: 100%; }
.sp-feature .ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--sp-accent-soft); color: var(--sp-accent-600); margin-bottom: .9rem; }
.sp-feature:nth-child(3n+2) .ic { background: var(--sp-forest-soft); color: var(--sp-forest); }
.sp-feature:nth-child(3n) .ic { background: var(--sp-info-soft); color: var(--sp-info); }
.sp-feature h3 { font-size: 1.05rem; font-family: var(--sp-font-body); font-weight: 600; }
.sp-feature p { color: var(--sp-muted); font-size: .92rem; margin: 0; }

/* storefront preview */
.sp-device { background: #fff; border-radius: 18px; box-shadow: var(--sp-shadow-lg); overflow: hidden; border: 1px solid var(--sp-border); }
.sp-device-bar { background: #efe9dd; padding: .55rem .9rem; display: flex; gap: .4rem; align-items: center; }
.sp-device-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d9cfbd; }
.sp-device-bar .url { margin-left: .8rem; font-size: .75rem; color: var(--sp-muted); background: #fff; padding: .2rem .7rem; border-radius: 999px; flex: 1; max-width: 340px; }

/* pricing */
.sp-price-card { padding: 2rem 1.75rem; height: 100%; display: flex; flex-direction: column; }
.sp-price-card.featured { border: 2px solid var(--sp-accent); position: relative; }
.sp-price-card.featured::before { content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--sp-accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .8rem; border-radius: 999px; }
.sp-price-card .amount { font-family: var(--sp-font-display); font-size: 2.8rem; font-weight: 600; color: var(--sp-ink); }
.sp-price-card .amount small { font-size: 1rem; color: var(--sp-muted); font-family: var(--sp-font-body); font-weight: 500; }
.sp-price-card ul { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; }
.sp-price-card li { padding: .35rem 0; display: flex; gap: .55rem; }
.sp-price-card li i { color: var(--sp-forest); }

/* faq */
.sp-faq .accordion-item { border: 1px solid var(--sp-border); border-radius: var(--sp-radius-sm) !important; margin-bottom: .6rem; overflow: hidden; background: var(--sp-surface); }
.sp-faq .accordion-button { font-weight: 600; color: var(--sp-ink); background: var(--sp-surface); }
.sp-faq .accordion-button:not(.collapsed) { background: var(--sp-surface-2); box-shadow: none; }
.sp-faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(197, 139, 43, .2); }

/* cta + footer */
.sp-cta { background: linear-gradient(135deg, var(--sp-ink), #2b3a54); color: #e8e2d4; border-radius: 22px; padding: 3.5rem 2rem; text-align: center; position: relative; overflow: hidden; }
.sp-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.sp-cta::after { content: ""; position: absolute; left: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(197, 139, 43, .35), transparent 70%); }
.sp-mkt-footer { padding: 3rem 0 2rem; border-top: 1px solid var(--sp-border); margin-top: 4rem; font-size: .9rem; }
.sp-mkt-footer a { color: var(--sp-ink-2); text-decoration: none; }
.sp-mkt-footer a:hover { color: var(--sp-accent-600); }

/* ---------- responsive: CTA near the top, compact hero, drawer nav */
.sp-mkt-toggler { width: 48px; height: 48px; }
@media (max-width: 767.98px) {
  .sp-hero { padding: 2rem 0 2.5rem; }
  .sp-hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.4rem); margin: .8rem 0; }
  .sp-hero .lead { font-size: 1.05rem; }
  .sp-section { padding: 2.75rem 0; }
  .sp-section-head { margin-bottom: 1.75rem; }
  .sp-trust { gap: .5rem 1rem; }
  .sp-mkt-nav .offcanvas .nav-link { min-height: 48px; display: flex; align-items: center; font-size: 1.05rem; }
}
@media (min-width: 768px) { .sp-mkt-nav .offcanvas-header { display: none; } }
/* backdrop-filter makes the sticky nav the containing block for the fixed off-canvas drawer inside it, which would
   push the closed drawer into the page width; phones get a solid bar instead. */
@media (max-width: 767.98px) { .sp-mkt-nav { backdrop-filter: none; background: rgba(250, 246, 238, .98); } }
/* sticky + z-index makes the nav a stacking context, so its drawer (1045) would sit under Bootstrap's backdrop (1040);
   lift the whole nav above the backdrop while it is a drawer. */
@media (max-width: 767.98px) { .sp-mkt-nav { z-index: 1046; } }
