/* ============================================================
   Thinking Gods — Products + Prompts pages
   Layered on top of v2.css: reuses its tokens, type scale and
   motion language so these pages read as the same site.
   ============================================================ */

/* ---------- compact page hero (shorter than the home hero) ---------- */
.page-hero {
  position: relative;
  min-height: 46svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 132px var(--gutter) 64px;
  background-image: radial-gradient(rgba(43,43,43,.14) 1px, transparent 1px);
  background-size: 4px 4px;
  overflow: hidden;
}
.page-hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 7.4vw, 118px);
  letter-spacing: -.05em; line-height: .88; margin: 14px 0 0; max-width: 16ch;
}
.page-hero .page-sub {
  margin: clamp(22px,3vw,34px) auto 0; max-width: 52ch;
  font-size: clamp(15px,1.15vw,19px); color: var(--ink-60);
}
.page-note {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--hair); background: rgba(255,255,255,.55);
}
.page-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cursor); flex: none; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.prod-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.2vw, 32px);
}

.prod {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: clamp(20px,2.4vw,30px);
  transform-style: preserve-3d;
  transition: box-shadow .5s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.prod:hover { box-shadow: 0 26px 60px rgba(0,0,0,.10); border-color: rgba(43,43,43,.26); }

/* the cover art is drawn in CSS — no mockup images needed */
.prod-cover {
  position: relative; overflow: hidden;
  border-radius: 13px;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background: var(--ink);
  transform: translateZ(28px);
}
.prod-cover .sheen {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 78% 12%, rgba(255,255,255,.20), transparent 58%);
  pointer-events: none;
}
.prod-cover .grid-lines {
  position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(rgba(241,241,241,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(241,241,241,.5) 1px, transparent 1px);
  background-size: 34px 34px;
}
.prod-cover-in { position: relative; text-align: center; padding: 22px; }
.prod-cover .kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(241,241,241,.62);
}
.prod-cover .ct {
  font-family: var(--display); font-weight: 400; color: #f1f1f1;
  font-size: clamp(24px, 2.9vw, 44px); letter-spacing: -.045em;
  line-height: .95; margin: 12px 0 0;
}
.prod--a .prod-cover { background: linear-gradient(150deg, #2b2b2b, #17171a 62%); }
.prod--b .prod-cover { background: linear-gradient(150deg, #3a1220, #2b2b2b 64%); }
.prod--c .prod-cover { background: linear-gradient(150deg, #12242e, #2b2b2b 64%); }

.prod-body { padding-top: 22px; display: flex; flex-direction: column; flex: 1; }
.prod h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(21px, 2.1vw, 33px); letter-spacing: -.035em;
  line-height: 1.02; margin: 0;
}
.prod-desc { margin: 12px 0 0; color: var(--ink-60); font-size: clamp(14px,1.02vw,16px); }

.prod-meta { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.prod-meta li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink); }
.prod-meta .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-40); min-width: 72px; flex: none;
}

.prod-foot { margin-top: auto; padding-top: 22px; }
.prod-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.prod-price .amt { font-family: var(--display); font-size: clamp(24px,2.4vw,34px); letter-spacing: -.04em; }
.prod-price .was { color: var(--ink-40); text-decoration: line-through; font-size: 15px; }
.prod-price .tag {
  margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cursor);
  border: 1px solid currentColor; border-radius: 999px; padding: 5px 10px;
}
.prod .btn--solid { width: 100%; text-align: center; justify-content: center; }

/* value strip */
.value-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2vw,30px);
}
.value {
  border-top: 1px solid var(--hair); padding-top: 20px;
}
.value h3 {
  font-family: var(--display); font-weight: 400; font-size: clamp(18px,1.7vw,26px);
  letter-spacing: -.03em; margin: 12px 0 0;
}
.value p { margin: 10px 0 0; color: var(--ink-60); font-size: 15px; }

/* ============================================================
   PROMPTS
   ============================================================ */
.pr-bar {
  position: sticky; top: 0; z-index: 20;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 14px 0 16px;
  background: linear-gradient(var(--bg) 72%, rgba(241,241,241,0));
}
.pr-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hair); background: transparent; color: var(--ink-60);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.pr-search {
  margin-left: auto; position: relative; display: flex; align-items: center;
}
.pr-search input {
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  padding: 11px 15px 11px 38px; min-width: 230px;
  border-radius: 999px; border: 1px solid var(--hair); background: rgba(255,255,255,.6);
  transition: border-color .25s var(--ease);
}
.pr-search input:focus { outline: none; border-color: var(--ink); }
.pr-search svg { position: absolute; left: 14px; width: 14px; height: 14px; opacity: .45; pointer-events: none; }
.pr-count { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); }

/* masonry via CSS columns — keeps varied card heights tight */
/* Real grid, not CSS columns. Masonry staggered the cards so no two
   rows lined up; a grid gives even rows with equal-height cards. */
.pr-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.1vw, 30px);
  align-items: stretch;
}
@media (max-width: 1100px) { .pr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .pr-grid { grid-template-columns: 1fr; } }

.pcard {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--hair); border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);   /* present at rest, not only on hover */
  transition: transform .55s var(--ease), box-shadow .55s var(--ease),
              opacity .4s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.pcard:hover { transform: translateY(-5px); box-shadow: 0 24px 54px rgba(0,0,0,.14); border-color: rgba(43,43,43,.28); }
.pcard.is-hidden { display: none; }

.pcard-media { position: relative; overflow: hidden; background: var(--ink); }
.pcard-media img { width: 100%; display: block; transition: transform .8s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.05); }

.pcard-cat {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(18,18,18,.82); color: #fff;
  backdrop-filter: blur(8px);
}
.pcard-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }

/* Title carries the card. Previously it sat at 19px directly against a
   12px monospace body, which read as one dense block with no entry point. */
.pcard-body h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 25px; letter-spacing: -.032em; line-height: 1.1;
  margin: 0 0 11px;
}

/* The prompt itself is prose, not code — monospace at 12px was a label font
   doing a paragraph's job. Sans at 15px/1.55 with a 68ch cap sits inside the
   65–75ch readable range and clears 4.5:1 contrast. */
.pcard-text {
  margin: 0;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: 0;
  color: rgba(43,43,43,.74);   /* 5.4:1 on white — comfortably readable */
  max-width: 62ch;
}

/* Actions get a clear divider and breathing room — 8px gap, 44px targets */
.pcard-actions {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 18px;
}
.pcard-actions button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase;
  min-height: 38px; padding: 0 15px;
  border-radius: 9px; cursor: pointer;
  border: 1px solid var(--hair); background: #fff; color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.copy-btn.done { background: var(--cursor); border-color: var(--cursor); color: #fff; }

.pr-empty { text-align: center; padding: 70px 0; color: var(--ink-40); display: none; }
.pr-empty.on { display: block; }

@media (max-width: 900px) {
  .prod-grid, .value-grid { grid-template-columns: 1fr; }
  .pr-search { margin-left: 0; width: 100%; }
  .pr-search input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .prod, .pcard, .pcard-media img { transition: none; }
}

/* ---------- prompt media: self-healing placeholder ----------
   If images/prompt-*.jpg isn't there yet the <img> removes itself on
   error and this tinted panel shows through. Drop the real files in
   and they take over with no markup change. */
.pcard-media { display: block; aspect-ratio: 16/10; }
.media-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.media-fallback .fb-emoji { font-size: 44px; filter: saturate(.9); opacity: .9; }
.pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.pcard-body h3 a { display: inline-flex; align-items: baseline; gap: 7px; }
.pcard-body h3 .ext { font-size: .62em; color: var(--ink-40); transition: transform .3s var(--ease); }
.pcard:hover .pcard-body h3 .ext { transform: translate(2px,-2px); color: var(--cursor); }


.pcard-open, .pcard-link {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  min-height: 38px; display: inline-flex; align-items: center; padding: 0 15px;
  border-radius: 9px; border: 1px solid var(--hair); background: transparent; color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pcard-open:hover, .pcard-link:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pcard-link { background: transparent; }

/* ---------- lead capture ---------- */
.lead-wrap {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr .85fr;
  gap: clamp(22px,3vw,54px); align-items: center;
  background: var(--ink); color: var(--bg);
  border-radius: 26px; padding: clamp(26px,3.4vw,52px);
}
@media (max-width: 880px) { .lead-wrap { grid-template-columns: 1fr; } }
.lead-copy h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(30px,3.8vw,58px); letter-spacing: -.045em; line-height: .96; margin: 14px 0 0;
}
.lead-copy > p { margin: 16px 0 0; color: rgba(241,241,241,.76); max-width: 44ch; font-size: clamp(15px,1.1vw,17px); }
.lead-copy .mono { color: rgba(241,241,241,.55); }
.lead-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.lead-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: rgba(241,241,241,.9); }
.lead-points li::before {
  content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cursor); color: #fff; display: grid; place-items: center; font-size: 11px; margin-top: 1px;
}

.lead-form { display: grid; gap: 14px; }
.lead-form .field { display: grid; gap: 8px; }
.lead-form .field .mono { color: rgba(241,241,241,.55); }
.lead-form .field i { font-style: normal; opacity: .7; }
.lead-form input {
  font-family: var(--sans); font-size: 16px; color: var(--bg);
  background: rgba(241,241,241,.07); border: 1px solid rgba(241,241,241,.2);
  border-radius: 12px; padding: 15px 16px; width: 100%;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.lead-form input::placeholder { color: rgba(241,241,241,.38); }
.lead-form input:focus { outline: none; border-color: var(--bg); background: rgba(241,241,241,.12); }
.lead-form input.invalid { border-color: var(--cursor); }
.lead-submit {
  background: var(--bg) !important; color: var(--ink) !important; border-color: var(--bg) !important;
  display: flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 4px;
}
.lead-submit:hover { background: #fff !important; }
.lead-status { margin: 0; font-size: 14px; min-height: 1.2em; color: rgba(241,241,241,.9); }
.lead-status.ok { color: #7fe0a6; } .lead-status.err { color: var(--cursor); }
.lead-fine { margin: 0; color: rgba(241,241,241,.42); font-size: 10.5px; }

/* unlinked card: present in the grid, clearly not clickable yet */
.pcard.is-unlinked .pcard-media { cursor: default; }
.pcard-soon {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  padding: 7px 11px; border-radius: 999px;
  background: rgba(241,241,241,.92); color: var(--ink);
  font-size: 10px; letter-spacing: .12em;
}
.pcard-open.is-disabled {
  opacity: .45; pointer-events: none; background: transparent;
}

/* space under the hero, and above the card grid */
.prompts-section { padding-top: clamp(40px, 5vw, 84px); }
.prompts-section .pr-grid { margin-top: clamp(26px, 3vw, 48px); }
