/* ============ Playbooks storefront ============ */

/* price band in hero */
.price-band { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 26px 0 22px; }
.price-pill {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 26px; min-width: 190px; position: relative;
}
.price-pill.best { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(56,224,196,.18); }
.pp-amt { font-size: 34px; font-weight: 800; color: var(--gold); line-height: 1; }
.pp-lbl { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.pp-tag { font-size: 11px; font-weight: 700; color: var(--brand-2); margin-top: 8px; background: rgba(56,224,196,.12); padding: 3px 10px; border-radius: 999px; }
.price-or { color: var(--ink-faint); font-weight: 600; }
.price-fine { flex-basis: 100%; text-align: center; color: var(--ink-faint); font-size: 13px; margin-top: 2px; }

/* domain tabs — sticky filter so visitors jump straight to their area */
.domain-tabs {
  position: sticky; top: 62px; z-index: 20;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; margin: 0 0 26px;
  background: rgba(20,21,40,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.dt-label { font-size: 12.5px; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; flex-shrink: 0; }
.dt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.dt-chips .dtab { white-space: nowrap; }

/* domain block */
.domain-block { margin-bottom: 46px; scroll-margin-top: 80px; }
.domain-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; cursor: pointer; user-select: none; padding: 6px 4px; border-radius: 12px; transition: background .15s ease; }
.domain-head:hover { background: rgba(124,92,255,.06); }
.dh-left { display: flex; align-items: center; gap: 14px; }
.dh-right { display: flex; align-items: center; gap: 12px; }
.dh-count { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; white-space: nowrap; }
.dh-toggle { font-size: 26px; color: var(--brand-2); transition: transform .2s ease; width: 46px; height: 46px; border-radius: 50%; background: rgba(56,224,196,.12); border: 1px solid rgba(56,224,196,.4); display: inline-flex; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.domain-head:hover .dh-toggle { background: rgba(56,224,196,.22); }
.domain-block.open .dh-toggle { transform: rotate(180deg); }
/* level-1 collapse: the whole domain body */
.domain-body { display: none; }
.domain-block.open .domain-body { display: block; }
.dh-emoji { font-size: 32px; background: rgba(124,92,255,.14); border: 1px solid rgba(124,92,255,.3); border-radius: 14px; padding: 10px; }
.dh-name { font-size: 24px; font-weight: 800; margin: 0; }
.dh-tagline { font-size: 14px; color: var(--brand-2); font-weight: 600; }
.dh-unlocked { color: var(--brand-2); font-weight: 700; font-size: 15px; }
.domain-blurb { color: var(--ink-soft); font-size: 15px; max-width: 760px; margin: 12px 0 20px; }

.pb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; align-items: start; }

/* playbook card */
.pb-card { background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pb-head { padding: 18px 20px; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; }
.pb-emoji { font-size: 26px; line-height: 1; background: rgba(124,92,255,.14); border: 1px solid rgba(124,92,255,.3); border-radius: 12px; padding: 8px; flex-shrink: 0; }
.pb-head-text { flex: 1; }
.pb-title { font-size: 18.5px; font-weight: 800; margin: 0 0 6px; line-height: 1.2; }
.pb-promise { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold); background: rgba(255,207,92,.1); border: 1px solid rgba(255,207,92,.28); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.pb-who { font-size: 12.5px; color: var(--brand-2); font-weight: 600; margin-bottom: 6px; }
.pb-outcome { font-size: 14px; color: var(--ink-soft); margin: 0; }
.pb-meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pb-count { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.pb-toggle { margin-left: auto; font-size: 16.5px; color: var(--brand-2); font-weight: 700; background: rgba(56,224,196,.12); border: 1px solid rgba(56,224,196,.4); padding: 9px 18px; border-radius: 999px; line-height: 1; }
.pb-card:hover .pb-toggle { background: rgba(56,224,196,.2); }
.pb-toggle::after { content: " ▼"; font-size: 13px; }
.pb-card.open .pb-toggle::after { content: " ▲"; }

.pb-steps { padding: 0 20px 16px; display: none; }
.pb-steps .pb-outcome { margin: 2px 0 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.pb-card.open .pb-steps { display: block; }
.pb-step { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.pb-step:last-child { border-bottom: 0; }
.pb-step-num { width: 25px; height: 25px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #5a3df0); color: #fff; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pb-step-body { flex: 1; }
.pb-step-why { font-size: 13.5px; color: var(--ink); margin: 0 0 6px; font-weight: 500; }
.pb-step-prompt { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-faint); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.pb-step-prompt:hover { border-color: var(--brand-2); color: var(--ink); }
.pp-lock { color: var(--gold); }
.pp-free { color: var(--brand-2); font-weight: 700; }

/* prompt modal */
.pb-modal { width: min(620px, 95vw); text-align: left; }
.pb-modal-cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-2); font-weight: 700; margin-bottom: 6px; }
.pb-modal h2 { font-size: 22px; margin: 0 0 8px; }
.pb-modal-what { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 14px; }
.pb-modal .prompt-box { max-height: 50vh; overflow: auto; }
.pb-modal .prompt-text { font-family: ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; font-size: 13px; line-height: 1.55; margin: 0; color: var(--ink-soft); }
.pb-modal .prompt-text .var { color: var(--gold); font-weight: 600; }
#pmActions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.pb-locked-note { padding: 16px; border-radius: 12px; background: rgba(255,207,92,.08); border: 1px solid rgba(255,207,92,.3); text-align: center; }
.pb-locked-note p { margin: 0 0 12px; color: var(--ink-soft); font-size: 14px; }

/* pricing modal */
.pricing-modal { width: min(680px, 95vw); text-align: center; }
.pricing-modal h2 { margin: 0 0 4px; font-size: 26px; }
.pricing-sub { color: var(--ink-faint); margin: 0 0 22px; }
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.pricing-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 20px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.pricing-card.best { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(56,224,196,.16); }
.pc-best { position: absolute; top: -11px; right: 16px; background: var(--brand-2); color: #08231f; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.pc-amt { font-size: 36px; font-weight: 800; color: var(--gold); line-height: 1; }
.pc-lbl { font-size: 15px; font-weight: 700; }
.pc-desc { font-size: 13px; color: var(--ink-soft); margin: 0; flex: 1; }
.pricing-card .sort-select { width: 100%; }
.pricing-modal .modal-divider { margin: 22px 0 14px; }

@media (max-width: 640px) {
  .pb-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .header-actions a[href="index.html"] { display: none; }
  .header-actions .btn { font-size: 12.5px; padding: 8px 11px; }
  .domain-head { align-items: flex-start; }
}
