/* ==========================================================================
   playbook-page.css — sections that exist only on /playbooks/<slug>.
   Loaded after lx.css (shared primitives, the card, the film player, the FAQ
   block, the closing CTA) and after the Playbook's own playbook-ui.css, which
   draws the curriculum accordion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1 — hero
   -------------------------------------------------------------------------- */
.pd-hero {
  position:relative; isolation:isolate; overflow:clip; color:#fff;
  background-color:#041947;
  background-image:
    radial-gradient(120% 130% at 12% -20%, #0a2a63 0%, #041947 48%, #020e28 100%);
  padding-block:clamp(22px, 2.6vw, 38px) clamp(40px, 4.6vw, 72px);
}
.pd-hero-bg { position:absolute; inset:0; z-index:-1; pointer-events:none; }
.pd-hero-bg .orb {
  position:absolute; right:-8vw; top:-16vw; width:min(44vw, 540px); aspect-ratio:1;
  border-radius:50%; filter:blur(90px); opacity:.42;
  /* tinted by the Playbook's own accent, so nine pages are nine rooms */
  background:radial-gradient(circle,
    color-mix(in srgb, var(--pb-accent) 62%, transparent), transparent 68%);
}
.pd-hero-bg .grid-veil {
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:58px 58px;
  mask-image:radial-gradient(85% 80% at 25% 15%, #000 18%, transparent 82%);
  -webkit-mask-image:radial-gradient(85% 80% at 25% 15%, #000 18%, transparent 82%);
}
.pd-hero-in { position:relative; }
.pd-hero .crumbs { color:#8ea6c8; margin-bottom:clamp(14px, 1.6vw, 22px); }
.pd-hero .crumbs a { color:#a9c0de; }
.pd-hero .crumbs a:hover { color:#fff; }
.pd-hero .lx-eyebrow { color:var(--orange-300); }
.pd-hero .lx-eyebrow .lx-ic { color:var(--orange-300); }

.pd-hero-grid {
  display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.12fr);
  gap:clamp(26px, 3.2vw, 52px); align-items:center;
}
@media (max-width: 1020px) { .pd-hero-grid { grid-template-columns:1fr; } }

.pd-h1 {
  font-family:var(--font-display); font-weight:900; color:#fff;
  font-size:clamp(1.9rem, 1.35rem + 2.4vw, 3.35rem);
  line-height:1.04; letter-spacing:-.028em; margin:13px 0 0;
}
.pd-tagline {
  margin:14px 0 0; max-width:52ch; color:#b7cae6;
  font-size:clamp(.98rem, .92rem + .4vw, 1.18rem); line-height:1.55;
}
.pd-chips { display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; }
.pd-chip {
  display:inline-flex; align-items:center; gap:6px; padding:5px 12px;
  border-radius:var(--r-full); font-size:var(--t-xs); font-weight:700;
  color:#d4e0f2; background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
}
.pd-chip .lx-ic svg { width:.95em; height:.95em; }
.pd-chip.is-app {
  background:color-mix(in srgb, var(--pb-accent) 22%, transparent);
  border-color:color-mix(in srgb, var(--pb-accent) 52%, transparent);
  color:#fff;
}

.pd-stats {
  display:flex; flex-wrap:wrap; gap:0; margin:clamp(20px, 2.2vw, 30px) 0 0;
  padding-top:clamp(18px, 2vw, 26px);
  border-top:1px solid rgba(255,255,255,.14);
}
.pd-stats > div { flex:1 1 88px; padding-right:clamp(12px, 1.6vw, 22px); }
.pd-stats dt {
  font-family:var(--font-display); font-weight:800; color:#fff; line-height:1;
  font-size:clamp(1.3rem, 1.05rem + .9vw, 1.95rem);
}
.pd-stats dd {
  margin:7px 0 0; font-size:var(--t-xs); letter-spacing:.08em;
  text-transform:uppercase; color:#8ea6c8; font-weight:650;
}
.pd-cta { margin-top:clamp(22px, 2.4vw, 32px); }
.pd-cta .btn { gap:8px; }

.pd-prog {
  margin-top:22px; padding:15px 17px; border-radius:var(--r-md);
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14);
  max-width:420px;
}
.pd-prog-top {
  display:flex; align-items:baseline; justify-content:space-between;
  color:#fff; font-size:var(--t-sm);
}
.pd-prog-top span { font-family:var(--font-display); font-weight:800; }
.pd-prog-bar {
  height:6px; border-radius:var(--r-full); background:rgba(255,255,255,.16);
  overflow:hidden; margin-top:10px;
}
.pd-prog-bar i {
  display:block; height:100%; border-radius:inherit;
  background:linear-gradient(90deg, var(--orange-400), var(--orange-300));
}
.pd-prog p { margin:9px 0 0; font-size:var(--t-xs); color:#9db3d2; }

/* the film, staged as a single Playbook film rather than a rail */
.pd-film { position:relative; }
.sff-solo .sff-cap { margin-top:clamp(12px, 1.4vw, 18px); }
.sff-solo .sff-cap h3 { font-size:var(--t-lg); }
/* the page already names the Playbook in the <h1> directly beside this, and
   "Open this Playbook" would link to the page the reader is already on */
.sff-solo .sff-cap h3,
.sff-solo .sff-cap p[data-cap-sub],
.sff-solo .sff-cap [data-open-current] { display:none; }
.sff-solo .sff-cap { align-items:center; }
/* the film is this page's proof that both narration tracks exist, so the
   language switch is on the caption at every width, not only on a phone */
.sff-solo .sff-langs-cap { display:inline-flex; margin-top:0; }
.sff-solo .sff-cap-meta { margin-bottom:0; }
.sff-solo .sff-cap > div {
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; width:100%;
}
.pd-film-none {
  aspect-ratio:16/9; border-radius:clamp(14px, 1.4vw, 22px);
  display:grid; place-items:center; font-size:clamp(48px, 6vw, 84px);
  background:
    radial-gradient(120% 100% at 25% 0%,
      color-mix(in srgb, var(--pb-accent) 40%, transparent), transparent 64%),
    #071733;
  border:1px solid rgba(255,255,255,.14);
}

/* --------------------------------------------------------------------------
   2 — outcomes
   -------------------------------------------------------------------------- */
.pd-out-grid {
  display:grid; grid-template-columns:minmax(0, 1.35fr) minmax(0, 1fr);
  gap:clamp(28px, 3.4vw, 60px); align-items:start;
}
@media (max-width: 940px) { .pd-out-grid { grid-template-columns:1fr; } }
.pd-outs { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.pd-out {
  display:flex; gap:14px; align-items:flex-start; padding:14px 16px;
  border-radius:var(--r-md); background:var(--surface);
  border:1px solid var(--line);
  font-size:var(--t-md); color:var(--ink); line-height:1.45;
  transition:border-color .2s linear, transform .24s var(--ease-out);
}
.pd-out:hover {
  transform:translateX(3px);
  border-color:color-mix(in srgb, var(--brand) 38%, var(--line));
}
.pd-out-n {
  flex:none; font-family:var(--font-display); font-weight:800;
  font-size:var(--t-sm); color:var(--brand-ink);
  background:var(--brand-wash); border-radius:var(--r-sm);
  padding:4px 8px; line-height:1.2; margin-top:1px;
}
.pd-who {
  padding:clamp(20px, 2.2vw, 30px); border-radius:var(--r-lg);
  background:var(--surface-2); border:1px solid var(--line);
  position:sticky; top:calc(var(--header-h) + 20px);
}
@media (max-width: 940px) { .pd-who { position:static; } }
.pd-who ul { list-style:none; margin:16px 0 0; padding:0; display:grid; gap:11px; }
.pd-who li {
  display:flex; gap:10px; align-items:flex-start;
  font-size:var(--t-sm); color:var(--ink); line-height:1.5;
}
.pd-who li .lx-ic { color:var(--ok-ink); margin-top:2px; }
.pd-who li .lx-ic svg { width:15px; height:15px; }
.pd-who-note {
  margin:18px 0 0; padding-top:16px; border-top:1px solid var(--line);
  font-size:var(--t-sm); color:var(--ink-2); line-height:1.6;
}

/* --------------------------------------------------------------------------
   3 — curriculum
   -------------------------------------------------------------------------- */
.pd-mods {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr));
  gap:12px; margin-bottom:clamp(24px, 2.6vw, 36px);
}
.pd-mod {
  display:block; padding:15px 16px; border-radius:var(--r-md);
  background:var(--surface); border:1px solid var(--line);
  border-top:3px solid var(--m-accent);
  transition:transform .24s var(--ease-out), box-shadow .24s var(--ease-out);
}
.pd-mod:hover { transform:translateY(-3px); box-shadow:var(--sh-2); text-decoration:none; }
.pd-mod-ico { font-size:19px; line-height:1; }
.pd-mod-n {
  display:block; margin-top:9px; font-size:var(--t-xs); font-weight:750;
  letter-spacing:.08em; text-transform:uppercase; color:var(--ink-3);
}
.pd-mod-t {
  display:block; margin-top:4px; font-family:var(--font-display);
  font-size:var(--t-md); font-weight:700; color:var(--ink); line-height:1.25;
}
.pd-mod-m { display:block; margin-top:8px; font-size:var(--t-xs); color:var(--ink-3); }

/* the accordion is the Playbook's own component; it only needs a plate here */
.pd-curric {
  border-radius:var(--r-lg); background:var(--surface);
  border:1px solid var(--line); padding:clamp(10px, 1.2vw, 18px);
  box-shadow:var(--sh-1);
}

/* --------------------------------------------------------------------------
   4 — tools (dark plate)
   -------------------------------------------------------------------------- */
.pd-tools {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:clamp(14px, 1.6vw, 20px);
}
.pd-tool {
  display:flex; gap:14px; align-items:flex-start; padding:18px;
  border-radius:var(--r-md); background:#0a1c38;
  border:1px solid rgba(255,255,255,.12); position:relative;
  transition:transform .24s var(--ease-out), border-color .2s linear,
             background .2s linear;
}
.pd-tool:hover {
  transform:translateY(-3px); background:#10254a;
  border-color:rgba(254,120,7,.42); text-decoration:none;
}
.pd-tool-ico {
  flex:none; width:42px; height:42px; border-radius:var(--r-sm);
  display:grid; place-items:center; font-size:21px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.13);
}
.pd-tool-body { display:block; min-width:0; flex:1; }
.pd-tool-body strong {
  display:flex; align-items:center; gap:7px;
  font-family:var(--font-display); font-size:var(--t-md); font-weight:700;
  color:#fff; line-height:1.25;
}
.pd-lock { display:inline-flex; color:#8ea6c8; }
.pd-tool-help {
  display:block; margin-top:7px; font-size:var(--t-sm); color:#93abcb;
  line-height:1.5;
}
.pd-tool-where {
  display:inline-block; margin-top:10px; padding:3px 9px;
  border-radius:var(--r-full); font-size:10px; font-weight:750;
  letter-spacing:.07em; text-transform:uppercase;
  background:rgba(255,255,255,.07); color:#8ea6c8;
}
.pd-tool-go {
  display:flex; align-items:center; gap:6px; margin-top:12px;
  font-size:var(--t-xs); font-weight:700; color:var(--orange-300);
  position:absolute; right:18px; bottom:16px;
}
.pd-tool-go .lx-ic { transition:transform .22s var(--ease-out); }
.pd-tool:hover .pd-tool-go .lx-ic { transform:translateX(3px); }
@media (max-width: 520px) { .pd-tool-go { position:static; } }

/* --------------------------------------------------------------------------
   5 — what is included
   -------------------------------------------------------------------------- */
.pd-inc {
  padding:clamp(18px, 1.8vw, 24px); border-radius:var(--r-md);
  background:var(--surface); border:1px solid var(--line);
  transition:transform .24s var(--ease-out), box-shadow .24s var(--ease-out);
}
.pd-inc:hover { transform:translateY(-3px); box-shadow:var(--sh-2); }
.pd-inc-ic {
  width:40px; height:40px; border-radius:var(--r-sm); margin-bottom:14px;
  background:var(--brand-wash); color:var(--brand-ink);
  border:1px solid color-mix(in srgb, var(--brand) 26%, transparent);
}
.pd-inc-ic svg { width:20px; height:20px; }
.pd-inc h3 {
  font-family:var(--font-display); font-size:var(--t-md); font-weight:750;
  margin:0; color:var(--ink); line-height:1.28;
}
.pd-inc p { margin:9px 0 0; font-size:var(--t-sm); color:var(--ink-2); line-height:1.55; }

/* --------------------------------------------------------------------------
   6 — pricing
   -------------------------------------------------------------------------- */
.pd-fine {
  margin:clamp(20px, 2.2vw, 30px) auto 0; max-width:74ch; text-align:center;
  font-size:var(--t-xs); color:var(--ink-3); line-height:1.6;
}

/* --------------------------------------------------------------------------
   7 — the author
   -------------------------------------------------------------------------- */
.pd-author-in {
  display:grid; grid-template-columns:auto minmax(0,1fr);
  gap:clamp(20px, 2.6vw, 40px); align-items:center;
  padding:clamp(24px, 2.8vw, 42px); border-radius:clamp(14px, 1.4vw, 22px);
  background-color:var(--navy-800);
  background-image:linear-gradient(140deg, var(--navy-800), var(--navy-900) 72%);
  color:#dbe6f5;
}
@media (max-width: 640px) { .pd-author-in { grid-template-columns:1fr; } }
.pd-author-face {
  width:clamp(72px, 8vw, 104px); aspect-ratio:1; border-radius:var(--r-lg);
  overflow:hidden; background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16); display:grid; place-items:center;
}
.pd-author-face img { width:100%; height:100%; object-fit:cover; }
.pd-author-in .lx-eyebrow { color:var(--orange-300); }
.pd-author-in .lx-eyebrow .lx-ic { color:var(--orange-300); }
.pd-author-in h2 {
  font-family:var(--font-display); font-weight:800; color:#fff; margin:12px 0 0;
  font-size:var(--t-2xl); line-height:1.12;
}
.pd-author-title {
  margin:6px 0 0; font-size:var(--t-sm); font-weight:700; color:var(--orange-300);
}
.pd-author-bio {
  margin:14px 0 0; max-width:76ch; font-size:var(--t-md); color:#a9c0de;
  line-height:1.65;
}
.pd-author-in .btn { margin-top:18px; gap:7px; }

/* --------------------------------------------------------------------------
   the module-page link inside each curriculum section
   -------------------------------------------------------------------------- */
.msec-more {
  display:inline-flex; align-items:center; gap:6px; margin-top:10px;
  padding:8px 4px; font-size:var(--t-xs); font-weight:700;
  color:var(--brand-ink);
}
.msec-more:hover { text-decoration:underline; }

/* ---- a tool card carrying its own screenshot ----------------------------
   The capture is the tool answering — inputs on the left, the figure on the
   right — so the card stacks instead of sitting the glyph beside the text.
   The shot is the evidence; the copy underneath says what it means. */
.pd-tool.has-shot { flex-direction:column; gap:14px; padding:14px 14px 18px; }
.pd-tool-shot {
  display:block; border-radius:var(--r-sm); overflow:hidden; line-height:0;
  border:1px solid rgba(255,255,255,.14);
  background:#f6f8fb;                       /* the page ground under the shot */
  /* Anchored to the top: the inputs and the first figure are the half worth
     showing, and letting the frame grow taller only adds empty panel. */
  aspect-ratio:16 / 8.2;
}
.pd-tool-shot img {
  width:100%; height:100%; object-fit:cover; object-position:top center;
  display:block; transition:transform .3s var(--ease-out);
}
.pd-tool.has-shot:hover .pd-tool-shot img { transform:scale(1.025); }
.pd-tool.has-shot .pd-tool-body { padding:0 4px; }
.pd-tool.has-shot .pd-tool-go { position:static; margin:12px 4px 0; }
@media (prefers-reduced-motion: reduce) {
  .pd-tool-shot img { transition:none; }
  .pd-tool.has-shot:hover .pd-tool-shot img { transform:none; }
}
