/* ============================================================
   OUR PLAYBOOKS — page-specific sections
   Loads AFTER theme.css. Isolated from other pages.

   Layout note: the product grid lives INSIDE the hero section so both playbooks
   land as high as possible (client feedback 2026-07-08). The headline was small
   for the same reason until 2026-07-19, when Bryan asked for it "much bigger"
   (FounderOS reference) — it now takes fold space back. Card anatomy follows Bryan's
   reference (filmkit.com store): cover image → tag → title → description →
   small two-word button. Titles/descriptions are Montserrat, not Anton.
   ============================================================ */

/* ---------- Pills ---------- */
.pill {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .38em .85em; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--ink-dim);
  transition: transform .24s var(--ease), border-color .24s var(--ease), color .24s var(--ease), background .24s var(--ease), box-shadow .24s var(--ease);
}
.pill--lime { background: var(--lime); color: #1a1f00; border-color: var(--lime); }

/* ---------- Hero (compact) ---------- */
/* Top padding is deliberately generous — Bryan asked for breathing room above
   the headline (2026-07-10) — and the product grid is sized down to pay for it. */
.page-hero { padding-top: clamp(150px, 19vh, 210px); padding-bottom: clamp(48px, 6vw, 80px); }

/* The hero runs wider than the 1200px site container so the headline fits on
   two lines — the white sentence on one line, the orange sentence on the next
   (Bryan, 2026-07-20). Scoped to `> .wrap` so header/footer are untouched;
   the ticks + product grid stay at their own 960px width, centered within. */
.page-hero > .wrap { max-width: min(1780px, 95vw); }

.page-hero .head-block {
  max-width: min(1740px, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(20px, 2.4vw, 30px);
  text-align: center;
}

/* Same width + column gap as .store, so the two tick columns line up
   with the two product cards below (Bryan, 2026-07-10). */
.page-hero .hero-ticks { max-width: 960px; }

/* Big FounderOS-style headline (Bryan, 2026-07-19). Font size kept full; the
   wide container above lets each sentence sit on one line (white line, orange
   line) on wide screens. On narrower desktops the big font means the white
   sentence may wrap — size is deliberately not reduced (Bryan, 2026-07-20). */
.page-hero h1 {
  font-size: clamp(2.1rem, 3.9vw, 3.6rem);
  line-height: 1.08;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}

/* The orange sentence always starts its own line, whatever the viewport does
   to the sentence above it. */
.page-hero h1 .t-orange { display: block; }

/* two compact columns so the ticks never eat the fold */
.hero-ticks {
  max-width: 960px;
  margin: 0 auto clamp(24px, 2.9vw, 36px);
  grid-template-columns: 1fr 1fr;
  gap: 10px clamp(24px, 3vw, 48px);
}
.hero-ticks li { font-size: .9rem; line-height: 1.45; }

.hero-ticks li,
.hero-ticks li::before { transition: transform .24s var(--ease), color .24s var(--ease); }
.hero-ticks li:hover { transform: translateX(5px); color: var(--ink); }
.hero-ticks li:hover::before { transform: scale(1.12); filter: drop-shadow(0 0 10px rgba(218,255,0,.36)); }

/* ---------- Store cards (borderless, media-first — matches the reference) ---------- */
/* 960px, down from 1180px — Bryan asked for a smaller products section (2026-07-10). */
.store { max-width: 960px; margin: 0 auto; align-items: stretch; gap: clamp(24px, 3vw, 48px); }

.store-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* cover image frame */
.store-card__media {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
/* 4:3 — matches Bryan's cover files (1500x1125), so the mockups fill the frame
   edge-to-edge with no clipping. (Was 16:9 while covers were .ph placeholders.) */
.store-card__media .ph,
.store-card__img { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; }
.store-card__img { object-fit: cover; }
.store-card__media:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0,0,0,.42); }
.store-card--paid .store-card__media:hover { box-shadow: 0 22px 44px rgba(0,0,0,.42), 0 0 26px rgba(218,255,0,.14); }

/* text — Montserrat throughout, reference sizing */
.store-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.22rem, 1.35vw, 1.45rem);
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
}
.store-card__title a { transition: color .2s var(--ease); }
.store-card__title a:hover { color: var(--lime); }
.store-card--paid .store-card__title a:hover { color: var(--orange); }

/* block, so both cards break the version after the title at the same point */
.store-card__sub { display: block; font-weight: 500; color: var(--ink-dim); }

.store-card__desc { font-size: .95rem; line-height: 1.6; color: var(--ink-dim); margin: 0; max-width: 58ch; }

/* price and CTA share one row, and `margin-top:auto` pins that row to a
   shared baseline across both cards regardless of description length */
.store-card__foot {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
  margin-top: auto;
  padding-top: 10px;
}
.store-card__price { font-family: var(--font-head); font-size: 1.3rem; line-height: 1; margin: 0; }
.store-card__price s { color: var(--ink-dim); font-size: .95rem; margin-right: 4px; }
.store-card__price strong { font-size: 1.7rem; font-weight: 400; }

/* small two-word CTA */
.btn--sm {
  padding: .78em 1.5em;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Short laptop viewports: shrink the hero further so the cards still clear the
   fold. The wide container makes each cover ~200px taller than a 1200px one
   would, so the cover has to get proportionally letterboxed to pay for it. */
@media (min-width: 861px) and (max-height: 860px) {
  .page-hero { padding-top: clamp(124px, 16vh, 156px); padding-bottom: 48px; }
  .page-hero .head-block { margin-bottom: 16px; }
  .page-hero h1 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); }
  .hero-ticks { margin-bottom: 24px; gap: 8px 32px; }
  .hero-ticks li { font-size: .85rem; }
  .store-card { gap: 8px; }
  /* mild 3:2 (was 12/5) — trims mostly the covers' white margin to save vertical
     space on short laptops without slicing the 4:3 mockup thin. */
  .store-card__media .ph,
  .store-card__img { aspect-ratio: 3 / 2; }
  .store-card__desc { font-size: .88rem; line-height: 1.45; }
  .store-card__foot { padding-top: 6px; }
}

/* ---------- Enquiry form polish on this page ---------- */
.chip span {
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.chip:hover span {
  transform: translateY(-2px);
  border-color: rgba(255,140,20,.45);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

@media (max-width: 860px) {
  /* single column — match the stacked cards' width so edges still align */
  .hero-ticks { grid-template-columns: 1fr; gap: 10px; max-width: 460px; }

  .store { max-width: 460px; }
}

@media (max-width: 640px) {
  .page-hero { padding-top: 150px; }

  .page-hero .head-block { text-align: left; }

  .page-hero h1 {
    font-size: clamp(1.9rem, 7.4vw, 2.5rem);
    line-height: 1.12;
  }

  .hero-ticks { margin-left: 0; }

  .chip:hover span { transform: none; }
  .hero-ticks li:hover { transform: translateX(3px); }

  .btn--sm { width: 100%; }

  /* the price/CTA rows would squeeze the now-full-width button */
  .store-card__foot { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }

  .store-card__title { font-size: 1.15rem; overflow-wrap: anywhere; }
  .store-card__sub { display: block; }

  .store-card__media:hover { transform: none; }

}

@media (max-width: 480px) {
  .page-hero { padding-top: 136px; }
  .page-hero h1 { font-size: clamp(1.75rem, 7vw, 2.2rem); }
  .hero-ticks li { font-size: .88rem; padding-left: 28px; }
  .store-card__price strong { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pill, .hero-ticks li, .hero-ticks li::before,
  .store-card__media, .store-card__title a, .chip span { transition: none; }
  .hero-ticks li:hover, .hero-ticks li:hover::before,
  .store-card__media:hover, .chip:hover span { transform: none; }
}
