/* ============================================================
   First Pull — shop CSS (Child C, trust-first direction 2026-10-01)
   Warm, honest, editorial. Tokens per COORDINATION.md.
   All classes prefixed fp- to avoid collisions with design.css.
   ============================================================ */
:root {
  --noir: #120b07;
  --espresso: #1d130c;
  --amber: #d9a441;
  --caramel: #b45f22;
  --caramel-deep: #8f4a1a;
  --cream: #f5ead6;
  --paper: #fffdf8;
  --muted: #77644f;
  --line: #e4d5ba;
  --ph-bg: #e9dcc4;
  --fp-radius: 14px;
  --fp-shadow: 0 10px 30px rgba(29, 19, 12, 0.10);
  --fp-sans: "Inter", "Avenir Next", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --fp-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }

body.fp {
  margin: 0;
  font-family: var(--fp-sans);
  background: var(--paper);
  color: var(--espresso);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.fp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.fp-narrow { max-width: 720px; margin: 0 auto; padding: 0 22px; }

.fp h1, .fp h2, .fp h3 { font-family: var(--fp-serif); line-height: 1.18; margin: 0 0 0.6em; letter-spacing: -0.01em; }
.fp h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); font-weight: 700; }
.fp h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 600; }
.fp h3 { font-size: 1.2rem; font-weight: 600; }
.fp p { margin: 0 0 1em; }
.fp a { color: var(--caramel); }
.fp a:hover { color: var(--caramel-deep); }

.fp-eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--caramel);
  margin: 0 0 0.9rem;
}
.fp-lede { font-size: 1.15rem; color: var(--espresso); max-width: 44em; }
.fp-muted { color: var(--muted); }
.fp-small { font-size: 0.88rem; }

/* ---------- Header ---------- */
.fp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.fp-header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 66px;
}
.fp-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--espresso); }
.fp-logo-text { font-family: var(--fp-serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.fp-logo-text em { font-style: italic; color: var(--caramel); }
.fp-nav { display: flex; align-items: center; gap: 4px; }
.fp-nav a { text-decoration: none; color: var(--espresso); font-weight: 500; font-size: 0.98rem; padding: 9px 13px; border-radius: 9px; }
.fp-nav a:hover { background: var(--cream); color: var(--espresso); }
.fp-nav a.fp-nav-cta { background: var(--caramel); color: #fff; font-weight: 700; margin-left: 8px; padding: 10px 20px; }
.fp-nav a.fp-nav-cta:hover { background: var(--caramel-deep); color: #fff; }
.fp-nav a.fp-nav-active { box-shadow: inset 0 0 0 1.5px var(--line); }
.nav-toggle.fp-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 9px;
  font-size: 1.3rem; line-height: 1; padding: 8px 12px; color: var(--espresso); cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle.fp-toggle { display: block; }
  .fp-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 22px 16px;
  }
  .fp-nav.open { display: flex; }
  .fp-nav a { padding: 12px 10px; }
  .fp-nav a.fp-nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Sections ---------- */
.fp-section { padding: 64px 0; }
.fp-section-cream { background: var(--cream); }
.fp-section-rule { border-top: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.fp-btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: 0;
  background: var(--caramel); color: #fff; font-weight: 700; font-size: 1.02rem;
  padding: 15px 30px; border-radius: 12px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.fp-btn:hover { background: var(--caramel-deep); color: #fff; transform: translateY(-1px); }
/* .fp a (higher specificity) must not override button text colors */
.fp a.fp-btn, .fp a.fp-btn:hover, .fp a.fp-btn:active { color: #fff; }
.fp a.fp-btn-outline, .fp a.fp-btn-outline:hover { color: var(--espresso); }
.fp-btn-outline {
  background: transparent; color: var(--espresso);
  box-shadow: inset 0 0 0 2px var(--espresso);
}
.fp-btn-outline:hover { background: var(--espresso); color: var(--cream); }
.fp-btn-block { display: block; width: 100%; text-align: center; }
.fp-buy-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.7rem; }

/* ---------- Image placeholders (awaiting real Higgsfield shots) ---------- */
.fp-ph {
  position: relative; overflow: hidden; border-radius: var(--fp-radius);
  background: linear-gradient(135deg, var(--ph-bg) 0%, #ddcba8 55%, #d3bd95 100%);
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
  box-shadow: var(--fp-shadow);
}
.fp-ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,253,248,0.35), transparent 55%);
  pointer-events: none;
}
.fp-ph svg { width: 72px; height: 72px; opacity: 0.45; }
.fp-ph-tall { aspect-ratio: 4 / 5; }
.fp-ph-wide { aspect-ratio: 16 / 10; }
/* Real photos must fill their frames (no letterbox bands) */
.fp-ph-tall img, .fp-ph-wide img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sales hero ---------- */
.fp-hero { padding: 56px 0 64px; }
.fp-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .fp-hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.fp-tagline { font-family: var(--fp-serif); font-size: 1.25rem; font-style: italic; color: var(--caramel-deep); margin: 0 0 1rem; }
.fp-honest { border-left: 3px solid var(--amber); padding: 2px 0 2px 16px; margin: 1.4rem 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Buy box ---------- */
.fp-buybox {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--fp-radius);
  padding: 26px; margin-top: 1.6rem; box-shadow: var(--fp-shadow);
}
.fp-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 0.9rem; flex-wrap: wrap; }
.fp-price { font-family: var(--fp-serif); font-size: 2rem; font-weight: 700; }
.fp-price s { color: var(--muted); font-weight: 400; font-size: 1.3rem; margin-right: 8px; }
.fp-price-note { font-size: 0.88rem; color: var(--muted); }
.fp-buybox .fp-buy-note { margin-bottom: 0; }

/* ---------- Chapter / card grids ---------- */
.fp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2rem; }
@media (max-width: 860px) { .fp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fp-grid { grid-template-columns: 1fr; } }
.fp-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--fp-radius);
  padding: 24px; transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex; flex-direction: column;
}
.fp-card:hover { transform: translateY(-3px); box-shadow: var(--fp-shadow); }
.fp-card h3 { margin-bottom: 0.45em; }
.fp-card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1.2rem; flex: 1; }
.fp-card .fp-chapter-num { color: var(--amber); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; }
.fp-card-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--caramel-deep); background: rgba(217, 164, 65, 0.18);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 0.9rem; align-self: flex-start;
}

/* ---------- Shop index product cards ---------- */
.fp-shop-card { display: flex; flex-direction: column; }
.fp-shop-card .fp-ph { min-height: 180px; margin: -24px -24px 20px; border-radius: var(--fp-radius) var(--fp-radius) 0 0; box-shadow: none; }
.fp-shop-card .fp-ph svg { width: 52px; height: 52px; }
.fp-card-price { font-family: var(--fp-serif); font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; }
.fp-card-price s { color: var(--muted); font-size: 1.05rem; font-weight: 400; margin-right: 6px; }
.fp-card-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.fp-card-actions .fp-btn { padding: 12px 18px; font-size: 0.95rem; text-align: center; }

/* ---------- Bundle banner ---------- */
.fp-bundle {
  background: var(--espresso); color: var(--cream); border-radius: 18px;
  padding: 48px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center;
  box-shadow: var(--fp-shadow);
}
@media (max-width: 760px) { .fp-bundle { grid-template-columns: 1fr; padding: 36px 26px; } }
.fp-bundle h2 { color: var(--cream); }
.fp-bundle .fp-eyebrow { color: var(--amber); }
.fp-bundle p { color: #d9c9ae; }
.fp-bundle-price { font-family: var(--fp-serif); font-size: 2.6rem; font-weight: 700; color: var(--amber); }
.fp-bundle-price s { color: #a68f6f; font-size: 1.5rem; font-weight: 400; margin-right: 10px; }

/* ---------- Blockquote sample ---------- */
.fp-sample {
  border: 1px solid var(--line); border-radius: var(--fp-radius); background: #fff;
  padding: 34px 32px; margin: 2rem 0; box-shadow: var(--fp-shadow);
}
.fp-sample p { font-family: var(--fp-serif); font-size: 1.18rem; font-style: italic; line-height: 1.6; }
.fp-sample p strong { font-style: normal; }
.fp-sample cite { display: block; margin-top: 1rem; font-style: normal; font-size: 0.88rem; color: var(--muted); font-family: var(--fp-sans); }

/* ---------- Checklist ---------- */
.fp-check { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.fp-check li { position: relative; padding: 7px 0 7px 32px; }
.fp-check li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(63, 122, 58, 0.14); color: #3f7a3a;
  font-size: 0.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* ---------- FAQ ---------- */
.fp-faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.fp-faq details:first-child { border-top: 1px solid var(--line); }
.fp-faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem; padding: 16px 4px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.fp-faq summary::-webkit-details-marker { display: none; }
.fp-faq summary::after { content: "+"; color: var(--caramel); font-size: 1.4rem; font-weight: 400; flex: none; }
.fp-faq details[open] summary::after { content: "–"; }
.fp-faq details p { padding: 0 4px 18px; color: var(--muted); margin: 0; }

/* ---------- "Try free first" strip ---------- */
.fp-freefirst {
  background: #fff; border: 1px dashed var(--caramel); border-radius: var(--fp-radius);
  padding: 26px 30px; margin: 2.4rem 0;
}
.fp-freefirst p { margin-bottom: 0.6rem; }
.fp-freefirst p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.fp-final { text-align: center; padding: 80px 0; }
.fp-final .fp-btn { margin-top: 1rem; }

/* ---------- Sticky mobile buy bar ---------- */
.fp-stickybar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255, 253, 248, 0.98); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  align-items: center; justify-content: space-between; gap: 12px;
}
.fp-stickybar .fp-btn { padding: 12px 22px; font-size: 0.95rem; white-space: nowrap; }
.fp-sticky-price { font-family: var(--fp-serif); font-weight: 700; font-size: 1.25rem; }
.fp-sticky-price s { color: var(--muted); font-size: 0.95rem; font-weight: 400; margin-right: 6px; }
@media (max-width: 760px) {
  body.fp-has-sticky .fp-stickybar { display: flex; }
  body.fp-has-sticky .fp-footer { padding-bottom: 92px; }
}

/* ---------- Downloads ---------- */
.fp-dl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--fp-radius);
  padding: 22px 24px; margin-bottom: 16px;
}
@media (max-width: 560px) { .fp-dl-row { flex-direction: column; align-items: stretch; } }
.fp-dl-row h3 { margin-bottom: 0.3em; }
.fp-dl-row p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
.fp-dl-row .fp-btn { flex: none; padding: 12px 22px; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.fp-footer { background: var(--espresso); color: #cdbb9e; margin-top: 0; padding: 56px 0 34px; }
.fp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
@media (max-width: 760px) { .fp-footer-grid { grid-template-columns: 1fr 1fr; } }
.fp-footer h3 { color: var(--cream); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--fp-sans); margin-bottom: 1rem; }
.fp-footer a { color: #cdbb9e; text-decoration: none; display: block; padding: 4px 0; font-size: 0.94rem; }
.fp-footer a:hover { color: var(--amber); }
.fp-footer-brand .fp-logo-text { color: var(--cream); }
.fp-footer-brand p { font-size: 0.94rem; }
.fp-footer-bottom { max-width: 1120px; margin: 36px auto 0; padding: 22px 22px 0; border-top: 1px solid rgba(217, 164, 65, 0.2); font-size: 0.85rem; color: #a68f6f; }

/* ---------- Reveal on scroll (progressive enhancement: hidden only when JS runs) ---------- */
html.js .fp-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .fp-reveal.fp-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fp-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.fp-center { text-align: center; }
.fp-mt { margin-top: 1.6rem; }
.fp-mb0 { margin-bottom: 0; }
.fp-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .fp-two-col { grid-template-columns: 1fr; } }
