/* pbl.css — /playbook/<slug> (app/playbook_landing.py). Built on sm.css
   tokens, so dark mode comes from sm.css redefining them. */

/* hero — on a phone the film sits between the promise and the CTA (v2,
   2026-10-11); experiment arm "order B" swaps the CTA above it. Desktop keeps
   copy + CTA on the left and the film on the right. */
.pbl-hero-grid { display: grid; gap: 20px; align-items: center;
  grid-template-areas: "copy" "film" "act"; }
.pbl-hero-grid.pbl-cta-first { grid-template-areas: "copy" "act" "film"; }
.pbl-hero-copy { grid-area: copy; }
.pbl-film { grid-area: film; }
.pbl-hero-act { grid-area: act; }
.pbl-hero-act .phero-ctas { margin-top: 0; }
.pbl-hero-copy .pbl-sub { margin: 0; }
@media (min-width: 980px) {
  .pbl-hero-grid, .pbl-hero-grid.pbl-cta-first { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas: "copy film" "act film"; column-gap: clamp(28px, 4vw, 56px); row-gap: 28px;
    align-items: end; }
  .pbl-hero-act { align-self: start; }
  .pbl-hero-grid.no-film { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "act"; }
}
@media (max-width: 979px) {
  .pbl-hero { padding-block: 22px 34px; }
  .pbl-hero .crumbs { display: none; }
  .pbl-hero h1 { font-size: clamp(1.75rem, 7.4vw, 2.4rem); margin-bottom: 10px; }
  .pbl-hero .pbl-sub { font-size: var(--t-base); line-height: 1.5; }
  .pbl-hero .pbl-badges:first-child { margin-bottom: 8px; }
  .pbl-hero-act .phero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .pbl-hero-act .phero-ctas .btn { width: 100%; justify-content: center; }
  .pbl-stats { margin: 16px 0 10px; gap: 6px 20px; }
  .pbl-stats b { font-size: var(--t-xl); }
  .pbl-film figcaption { padding: 8px 12px; }
  .pbl-hero-copy .pbl-badges { display: none; }
}
@media (max-width: 640px) {
  .pbl-film figcaption > span { display: none; }  /* the title is the video's aria-label too */
  .pbl-film figcaption { flex-wrap: nowrap; }
}
@media (min-width: 980px) { .pbl-hero-grid > .pbl-film { align-self: center; } }
.pbl-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pbl-chips li { display: inline-flex; align-items: center; gap: 6px; color: #DCE7F3; font-size: var(--t-sm);
  font-weight: 600; }
.pbl-chips svg { color: var(--o); flex: none; }
.pbl-film { position: relative; }
.pbl-unmute { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: rgba(4, 12, 24, .78); color: #fff; font: inherit; font-size: var(--t-sm); font-weight: 600; }
.pbl-unmute:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pbl-unmute[hidden] { display: none; }
.pbl-hero h1 { text-wrap: balance; }
.pbl-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pbl-stats { list-style: none; margin: 26px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.pbl-stats li { display: grid; }
.pbl-stats b { font-family: var(--font-display); font-size: var(--t-2xl); color: #fff;
  font-variant-numeric: tabular-nums; line-height: 1.1; }
.pbl-stats span { color: var(--on-navy-muted); font-size: var(--t-sm); }
.pbl-signin { color: var(--on-navy-muted); font-size: var(--t-sm); margin-top: 14px; }
.pbl-signin a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pbl-film { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #000;
  box-shadow: var(--sh-navy); border: 1px solid var(--on-navy-line); }
.pbl-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.pbl-film figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px;
  background: var(--navy-800); color: var(--on-navy-muted); font-size: var(--t-sm); }
.pbl-film figcaption span { color: #fff; font-weight: 600; }
.pbl-lang { margin-left: auto; display: inline-flex; padding: 3px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08); }
.pbl-lang button { min-height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: none;
  color: var(--on-navy-muted); font: inherit; font-weight: 600; cursor: pointer; }
.pbl-lang button[aria-pressed="true"] { background: var(--o); color: #1b0d00; }
.pbl-lang button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* why */
.pbl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* preview */
.pbl-shots { margin-top: 36px; }
.pbl-shot { margin: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--sh-2); }
.pbl-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 750; object-fit: cover;
  object-position: top left; }
.pbl-shot figcaption { display: grid; gap: 2px; padding: 14px 16px; }
.pbl-shot figcaption span { color: var(--text-3); font-size: var(--t-sm); }
.pbl-fine { margin-top: 14px; color: var(--text-3); font-size: var(--t-sm); }

/* worked example */
.pbl-demo { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 860px) { .pbl-demo { grid-template-columns: 1fr 1.2fr; } }
.pbl-demo-in, .pbl-demo-out { border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--border);
  background: var(--surface-2); }
.pbl-demo-out { background: var(--navy-800); border-color: var(--navy-line); color: #fff; }
.pbl-demo-l { font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 12px; }
.pbl-demo-out .pbl-demo-l { color: var(--on-navy-muted); }
.pbl-demo-in ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pbl-demo-in li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px;
  border-bottom: 1px dashed var(--border); }
.pbl-demo-in li b { font-variant-numeric: tabular-nums; }
.pbl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.pbl-kpi { padding: 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06);
  border: 1px solid var(--on-navy-line); display: grid; gap: 4px; }
.pbl-kpi span { color: var(--on-navy-muted); font-size: var(--t-sm); }
.pbl-kpi b { font-family: var(--font-display); font-size: var(--t-2xl); font-variant-numeric: tabular-nums; }
.pbl-kpi.is-hero { border-color: var(--o); background: rgba(244, 127, 32, .14); }
.pbl-verdict { margin-top: 14px; display: inline-flex; padding: 6px 12px; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--t-sm); background: rgba(14, 122, 84, .22); color: #8fe0bf; }
.pbl-verdict.pbl-warn, .pbl-verdict.pbl-bad { background: rgba(244, 127, 32, .2); color: #ffc58f; }
.pbl-tools { display: grid; gap: 12px; margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pbl-tool { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface); }
.pbl-tool > span { font-size: 22px; line-height: 1; }
.pbl-tool h3 { font-size: var(--t-md); margin: 0; }
.pbl-tool p { margin: 4px 0 0; color: var(--text-2); font-size: var(--t-sm); }

/* curriculum */
.pbl-mods { display: grid; gap: 10px; margin-top: 32px; }
.pbl-mod { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.pbl-mod summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; }
.pbl-mod summary::-webkit-details-marker { display: none; }
.pbl-mod summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-md); }
.pbl-mod-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--o-050); color: var(--o-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.pbl-mod-t { display: grid; gap: 2px; min-width: 0; }
.pbl-mod-t small { color: var(--text-3); font-size: var(--t-sm); }
.pbl-mod-m { color: var(--text-3); font-size: var(--t-sm); white-space: nowrap; }
.pbl-mod[open] { box-shadow: var(--sh-2); }
.pbl-mod ul { list-style: none; margin: 0; padding: 0 18px 14px 70px; display: grid; gap: 6px; }
.pbl-mod li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: var(--t-sm);
  min-height: 32px; }
.pbl-mod li .pbl-li-t { flex: 1; min-width: 0; }
.pbl-mod li i { font-style: normal; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .pbl-mod summary { grid-template-columns: auto minmax(0, 1fr); }
  .pbl-mod-m { grid-column: 2; }
  .pbl-mod ul { padding-left: 18px; }
}

/* free */
.pbl-free { display: grid; gap: 20px; align-items: center; padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r-xl); border: 1px solid var(--border);
  background: radial-gradient(80% 140% at 100% 0%, var(--o-050), transparent 60%), var(--surface-2); }
@media (min-width: 900px) { .pbl-free { grid-template-columns: 1.2fr auto auto; } }
.pbl-free h2 { margin: 6px 0 8px; }
.pbl-free-nums { display: flex; gap: 12px; flex-wrap: wrap; }
.pbl-free-n { display: grid; justify-items: center; min-width: 150px; padding: 14px 18px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); text-align: center; }
.pbl-free-n b { font-family: var(--font-display); font-size: var(--t-4xl); line-height: 1; color: var(--o-ink);
  font-variant-numeric: tabular-nums; }
.pbl-free-n span { font-size: var(--t-sm); color: var(--text-2); font-weight: 600; }

/* pricing */
.pbl-ticks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 20px; color: var(--text-2); font-size: var(--t-sm); font-weight: 600; }
.pbl-plans { display: grid; gap: 16px; margin-top: 30px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; }
.pbl-plan { position: relative; display: grid; gap: 6px; padding: 26px 22px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface); }
.pbl-plan.is-featured { border: 2px solid var(--o); box-shadow: var(--sh-3); }
.pbl-plan-badge { position: absolute; top: -12px; left: 22px; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--o); color: #1b0d00; font-size: var(--t-xs); font-weight: 800; letter-spacing: .06em; }
.pbl-plan h3 { margin: 0; }
.pbl-plan-for { color: var(--text-3); font-size: var(--t-sm); margin: 0; }
.pbl-plan-amt { font-family: var(--font-display); font-size: var(--t-4xl); font-weight: 800; margin: 10px 0 0;
  font-variant-numeric: tabular-nums; }
.pbl-plan-amt small { font-size: var(--t-base); font-weight: 500; color: var(--text-3); }
.pbl-mrp { color: var(--text-3); font-size: var(--t-sm); }
.pbl-mrp s { margin-right: 4px; }
.pbl-plan-eq { color: var(--ok); font-weight: 600; font-size: var(--t-sm); margin: 0 0 12px; }
.pbl-plan-lead { margin: 14px 0 6px; font-size: var(--t-sm); font-weight: 700; }
.pbl-plan ul, .pbl-shared { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pbl-plan li, .pbl-shared li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); font-size: var(--t-sm); }
.pbl-plan li svg, .pbl-shared li svg { color: var(--ok); flex: none; margin-top: 2px; }
.pbl-shared { margin: 24px auto 0; max-width: 720px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pbl-master { display: grid; gap: 16px; align-items: center; margin-top: 34px; padding: 24px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface-2); }
@media (min-width: 860px) { .pbl-master { grid-template-columns: 1fr auto auto; } }
.pbl-master h3 { margin: 6px 0; }
.pbl-master p { color: var(--text-2); margin: 0; }
.pbl-master-p b { font-family: var(--font-display); font-size: var(--t-3xl); font-variant-numeric: tabular-nums; }
.pbl-master-p span { color: var(--text-3); }

/* certification / trust / related */
.pbl-cert { display: flex; gap: 18px; align-items: flex-start; }
.pbl-cert h2 { margin: 6px 0 8px; font-size: var(--t-2xl); }
.pbl-cert p { color: var(--text-2); max-width: 70ch; }
.pbl-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pbl-points li { display: flex; gap: 12px; }
.pbl-points li svg { color: var(--o-ink); flex: none; margin-top: 4px; }
.pbl-points h3 { margin: 0; font-size: var(--t-md); }
.pbl-points p { margin: 4px 0 0; color: var(--text-2); }
.pbl-author-t { color: var(--text-3); margin: 0 0 8px; font-size: var(--t-sm); }
.pbl-rel { display: grid; gap: 8px; align-content: start; }
.pbl-rel-e { font-size: 26px; }
.pbl-rel p { color: var(--text-2); margin: 0; }

.pbl-mod-c { width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.pbl-mod[open] .pbl-mod-c { transform: rotate(225deg) translateY(-2px); }
@media (max-width: 640px) { .pbl-mod-c { display: none; } }
@media (min-width: 1121px) { .pbl-flow { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); } }
.pbl-demo-l2 { margin-top: 20px; }
.pbl-demo-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--on-navy-muted);
  font-size: var(--t-sm); }

/* ---- v2 (2026-10-11) ------------------------------------------------ */
/* curriculum rows: play icon, free / locked state, the one previewable lesson */
.pbl-li-i { flex: none; color: var(--text-3); }
.pbl-li-i.is-free { color: var(--ok); }
.pbl-lock { display: inline-flex; color: var(--text-3); }
.pbl-prev { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--o-050); color: var(--o-ink); font-weight: 700; font-size: var(--t-xs); white-space: nowrap;
  text-decoration: none; border: 1px solid color-mix(in srgb, var(--o-ink) 30%, transparent); }
.pbl-prev:hover { background: var(--o); color: #1b0d00; }
.pbl-mod[open] > ul { animation: pbl-open .18s ease-out; }
@keyframes pbl-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pbl-mod summary { min-height: 56px; }
.pbl-mod-t small { display: block; }
.pbl-unlock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin-top: 22px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); }
.pbl-unlock b { display: block; font-size: var(--t-md); }
.pbl-unlock span { color: var(--text-2); font-size: var(--t-sm); }
@media (max-width: 640px) {
  .pbl-unlock .btn { width: 100%; justify-content: center; }
  .pbl-mod li { flex-wrap: wrap; row-gap: 2px; }
  .pbl-mod li .pbl-li-t { flex-basis: calc(100% - 30px); }
  .pbl-mod li > .badge, .pbl-mod li > .pbl-prev, .pbl-mod li > .pbl-lock { margin-left: 26px; }
}

/* tools: the try CTA and the other Playbooks' tools */
.pbl-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; }
.pbl-try span { color: var(--text-3); font-size: var(--t-sm); }
.pbl-more { margin-top: 34px; }
.pbl-more-h { font-size: var(--t-md); margin: 0 0 12px; }
.pbl-mts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.pbl-mt { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; }
.pbl-mt:hover { border-color: var(--o); }
.pbl-mt-i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--o-050); color: var(--o-ink); margin-bottom: 4px; }
.pbl-mt > span:not(.pbl-mt-i) { color: var(--text-2); font-size: var(--t-sm); }
.pbl-mt small { color: var(--text-3); font-size: var(--t-xs); font-weight: 600; }

/* Saarthi */
.pbl-sa { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .pbl-sa { grid-template-columns: 1fr 1.1fr; } }
.pbl-sa h2 { margin: 8px 0 10px; }
.pbl-sa .phero-ctas { margin-top: 18px; }
.pbl-chat { margin: 0; display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--sh-2); color: var(--text); }
.pbl-chat-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--text-3);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .02em; }
.pbl-msg { padding: 12px 14px; border-radius: 14px; font-size: var(--t-sm); line-height: 1.55; }
.pbl-msg-u { justify-self: end; max-width: 88%; background: var(--navy-800); color: #fff;
  border-bottom-right-radius: 4px; }
.pbl-msg-a { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.pbl-msg-who { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-text);
  margin-bottom: 6px; }
.pbl-msg-a ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); }

/* pricing: start free line */
.pbl-upfree { margin: 14px 0 0; color: var(--text-2); font-size: var(--t-sm); }
.pbl-upfree a { color: var(--accent-text); font-weight: 700; }

/* phone rails — product shots, related Playbooks and the tool row scroll
   sideways inside their own box instead of stacking tall cards. The page
   itself never scrolls sideways: the rail is clipped by its own overflow. */
@media (max-width: 640px) {
  .pbl-rail { display: grid !important; grid-auto-flow: column; grid-template-columns: none !important;
    grid-auto-columns: 82%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .pbl-rail > * { scroll-snap-align: start; }
  .pbl-shots { margin-top: 24px; }
}

/* sticky CTA — above the site's bottom bar on a phone, at the bottom edge on a
   tablet; never on a desktop, where the header CTA is always in view */
.pbl-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-sticky) + 1);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 96%, transparent); border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform .22s ease; pointer-events: none; }
.pbl-sticky.is-on { transform: none; pointer-events: auto; }
.pbl-sticky .btn { width: 100%; justify-content: center; min-height: 48px; }
@media (max-width: 640px) {
  .pbl-sticky { bottom: calc(64px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
  .pbl-sticky:not(.is-on) { transform: translateY(calc(100% + 80px)); }
}
@media (min-width: 980px) { .pbl-sticky { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .pbl-sticky { transition: none; }
  .pbl-mod[open] > ul { animation: none; }
}

/* admin preview banner */
.pbl-preview-bar { position: sticky; top: 0; z-index: calc(var(--z-header) + 1); display: flex; gap: 8px;
  align-items: center; justify-content: center; padding: 8px 16px; background: #FFE8A3; color: #3A2A00;
  font-size: var(--t-sm); font-weight: 700; }

/* Great Indian SMEMinds Offer (2026-10-11) — figures come from the platform */
.pbl-offer { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r-md); background: rgba(255, 153, 51, .14);
  border: 1px solid rgba(255, 180, 107, .45); color: #FFE2C4; font-size: var(--t-sm); line-height: 1.5; }
.pbl-offer b { color: #FFB46B; margin-right: 6px; }
.pbl-offer a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pbl-offer-code { display: block; margin-top: 2px; color: #DCE7F3; }
.pbl-offer code, .pbl-offer-band code { padding: 1px 7px; border-radius: 6px; background: #fff; color: #041947;
  font-weight: 800; letter-spacing: .04em; }
.pbl-offer-band { display: grid; gap: 4px; max-width: 760px; margin: 18px auto 0; padding: 14px 18px;
  border-radius: var(--r-lg); background: var(--navy-800); color: #DCE7F3; text-align: center;
  font-size: var(--t-sm); }
.pbl-offer-band b { color: #FFB46B; font-size: var(--t-md); }
.pbl-offer-band code { border: 1px solid transparent; }
.pbl-mrp { display: inline-flex; align-items: center; gap: 8px; }
.pbl-pct { display: inline-flex; padding: 3px 10px; border-radius: var(--r-pill); background: var(--ok-bg, #E7F6EF);
  color: var(--ok); font-size: var(--t-sm); font-weight: 800; letter-spacing: .02em; }
