/* ProcessWeave public landing page (Sprint 14).
 *
 * Loaded only by marketing/home.html, after design_tokens.css and
 * components.css (LAYOUT_GUIDE load order) — see test_design_system.py's
 * `test_every_page_loads_theme_then_tokens_then_components`. Tokens only,
 * same as components.css/report.css: no literal colour values or functions,
 * no primitive (--pw-navy-*/--pw-blue-*/…) references, semantic tokens only.
 */

/* 1. Shell overrides — the marketing page is full-bleed, not the centred
 *    440px auth card every other anonymous page uses. ==================== */
.app-content.page-landing { display: block; width: 100%; max-width: none; padding: 0; }
.landing { display: flex; flex-direction: column; }
.landing-section { padding-block: var(--pw-space-16); }
.landing-section-inner {
  max-width: var(--pw-content-max); margin: 0 auto;
  padding-inline: var(--pw-space-8);
}
.landing-section-head { max-width: 68ch; margin: 0 0 var(--pw-space-10); }
.landing-section-head.centered { max-width: 60ch; margin-inline: auto; text-align: center; }
.landing-section-title {
  margin: var(--pw-space-2) 0 0; font-size: var(--pw-font-size-3xl); font-weight: var(--pw-font-weight-bold);
  line-height: var(--pw-line-height-tight); letter-spacing: var(--pw-letter-spacing-tight); color: var(--pw-color-text);
}
.landing-section-lede { margin: var(--pw-space-4) 0 0; font-size: var(--pw-font-size-lg); color: var(--pw-color-text-secondary); line-height: var(--pw-line-height-normal); }
.landing-band-alt { background: var(--pw-color-surface-subtle); }
.landing-band-chrome { background: linear-gradient(160deg, var(--pw-color-chrome-strong), var(--pw-color-chrome)); color: var(--pw-color-chrome-text); }
.landing-band-chrome .landing-section-title, .landing-band-chrome .landing-section-lede { color: var(--pw-color-chrome-text-strong); }
.landing-band-chrome .eyebrow { color: var(--pw-color-highlight); }

/* 2. Hero ================================================================ */
.landing-hero {
  padding-block: var(--pw-space-16);
  background: linear-gradient(135deg, var(--pw-color-primary-subtle), var(--pw-color-accent-teal-subtle) 55%, var(--pw-color-accent-purple-subtle));
}
.landing-hero-inner {
  max-width: var(--pw-content-max); margin: 0 auto; padding-inline: var(--pw-space-8);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: var(--pw-space-12);
  align-items: start;
}
.landing-hero-copy { padding-top: var(--pw-space-4); }
.landing-hero-title {
  margin: var(--pw-space-3) 0 0; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  font-weight: var(--pw-font-weight-bold); line-height: var(--pw-line-height-tight);
  letter-spacing: var(--pw-letter-spacing-tight); color: var(--pw-color-text);
}
.landing-hero-lede { margin: var(--pw-space-5) 0 0; max-width: 56ch; font-size: var(--pw-font-size-xl); color: var(--pw-color-text-secondary); line-height: var(--pw-line-height-normal); }
.landing-hero-actions { margin-top: var(--pw-space-8); }
.landing-hero-art { margin-top: var(--pw-space-8); max-width: 560px; color: var(--pw-color-primary); }
.landing-hero-art svg { width: 100%; height: auto; display: block; }
.weave-thread-a { stroke: var(--pw-color-primary); }
.weave-thread-b { stroke: var(--pw-color-accent-teal); }
.weave-thread-c { stroke: var(--pw-color-accent-purple); }
.weave-thread-d { stroke: var(--pw-color-favorite); }
.weave-fabric { fill: var(--pw-color-surface); stroke: var(--pw-color-border-strong); }
.weave-fabric-cell-a { fill: var(--pw-color-primary-subtle); }
.weave-fabric-cell-b { fill: var(--pw-color-accent-teal-subtle); }
.weave-fabric-cell-c { fill: var(--pw-color-accent-purple-subtle); }

/* 3. Login panel (Section 1's "embedded login gateway") ================= */
.landing-login-panel { width: 100%; margin: 0; }
.landing-login-panel .card-title { font-size: var(--pw-font-size-xl); }
.landing-login-panel form { display: flex; flex-direction: column; gap: var(--pw-space-1); }
.landing-login-links {
  display: flex; align-items: center; justify-content: space-between; gap: var(--pw-space-3);
  margin-top: var(--pw-space-4); padding-top: var(--pw-space-4); border-top: 1px solid var(--pw-color-border);
  font-size: var(--pw-font-size-sm);
}

/* 4. Capability cards ==================================================== */
.landing-capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pw-space-5); }
.landing-capability-card {
  padding: var(--pw-space-6); background: var(--pw-color-surface); border: 1px solid var(--pw-color-border);
  border-radius: var(--pw-radius-lg); box-shadow: var(--pw-shadow-1);
}
.landing-capability-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--pw-radius-md); background: var(--pw-color-primary-subtle); color: var(--pw-color-primary);
  margin-bottom: var(--pw-space-4);
}
.landing-capability-icon .icon { width: 22px; height: 22px; }
.landing-capability-card h3 { margin: 0; font-size: var(--pw-font-size-lg); font-weight: var(--pw-font-weight-semibold); color: var(--pw-color-text); }
.landing-capability-card p { margin: var(--pw-space-2) 0 0; font-size: var(--pw-font-size-sm); color: var(--pw-color-text-muted); line-height: var(--pw-line-height-normal); }

/* 5. Platform showcase (device-frame preview panels) ===================== */
.landing-showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pw-space-6); }
.landing-device-frame {
  border: 1px solid var(--pw-color-border); border-radius: var(--pw-radius-lg); overflow: hidden;
  background: var(--pw-color-surface); box-shadow: var(--pw-shadow-2);
}
.landing-device-bar { display: flex; align-items: center; gap: var(--pw-space-2); padding: var(--pw-space-3) var(--pw-space-4); background: var(--pw-color-surface-subtle); border-bottom: 1px solid var(--pw-color-border); }
.landing-device-dot { width: 8px; height: 8px; border-radius: var(--pw-radius-full); background: var(--pw-color-border-strong); }
.landing-device-screen {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--pw-space-3);
  min-height: 180px; padding: var(--pw-space-6);
  background: linear-gradient(160deg, var(--pw-color-primary-subtle), var(--pw-color-surface-subtle));
  color: var(--pw-color-primary);
  text-align: center;
}
.landing-device-screen .icon { width: 32px; height: 32px; }
.landing-device-caption { padding: var(--pw-space-4) var(--pw-space-5) var(--pw-space-5); }
.landing-device-caption h3 { margin: 0; font-size: var(--pw-font-size-md); font-weight: var(--pw-font-weight-semibold); color: var(--pw-color-text); }
.landing-device-caption p { margin: var(--pw-space-1) 0 0; font-size: var(--pw-font-size-sm); color: var(--pw-color-text-muted); }
.landing-preview-tag {
  display: inline-flex; width: fit-content; font-size: var(--pw-font-size-xs); font-weight: var(--pw-font-weight-semibold);
  text-transform: uppercase; letter-spacing: var(--pw-letter-spacing-caps); color: var(--pw-color-text-muted);
}

/* 6. Process lifecycle ==================================================== */
.landing-lifecycle { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--pw-space-3); }
.landing-lifecycle-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--pw-space-2); }
.landing-lifecycle-step::before {
  content: ""; position: absolute; top: 22px; left: -50%; width: 100%; height: 2px; background: var(--pw-color-border-strong); z-index: var(--pw-z-base);
}
.landing-lifecycle-step:first-child::before { display: none; }
.landing-lifecycle-index {
  position: relative; z-index: var(--pw-z-raised);
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--pw-radius-full); background: var(--pw-color-primary); color: var(--pw-color-on-primary);
  font-weight: var(--pw-font-weight-semibold); font-size: var(--pw-font-size-md);
}
.landing-lifecycle-step span.landing-lifecycle-label { font-size: var(--pw-font-size-sm); font-weight: var(--pw-font-weight-semibold); color: var(--pw-color-text); }

/* 7. Why ProcessWeave (three-column value prop) =========================== */
.landing-value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pw-space-6); }
.landing-value-card { text-align: center; padding: var(--pw-space-4); }
.landing-value-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: var(--pw-radius-full); margin-bottom: var(--pw-space-4);
  background: var(--pw-color-accent-teal-subtle); color: var(--pw-color-accent-teal);
}
.landing-value-icon .icon { width: 26px; height: 26px; }
.landing-value-card h3 { margin: 0; font-size: var(--pw-font-size-xl); font-weight: var(--pw-font-weight-semibold); color: var(--pw-color-text); }
.landing-value-card p { margin: var(--pw-space-2) auto 0; max-width: 40ch; font-size: var(--pw-font-size-md); color: var(--pw-color-text-muted); }

/* 8. Statistics banner ===================================================== */
.landing-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pw-space-6); text-align: center; }
.landing-stat-value {
  margin: 0; font-size: var(--pw-font-size-3xl); font-weight: var(--pw-font-weight-bold);
  font-variant-numeric: tabular-nums; color: var(--pw-color-chrome-text-strong);
}
.landing-stat-label { margin: var(--pw-space-2) 0 0; font-size: var(--pw-font-size-sm); color: var(--pw-color-chrome-text); }
.landing-stats-note { margin: var(--pw-space-8) 0 0; text-align: center; font-size: var(--pw-font-size-xs); color: var(--pw-color-chrome-text-muted); }

/* 9. Customer benefits ====================================================== */
.landing-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pw-space-4) var(--pw-space-6); }
.landing-benefit { display: flex; align-items: flex-start; gap: var(--pw-space-3); }
.landing-benefit-icon { flex: 0 0 auto; color: var(--pw-color-success); margin-top: 2px; }
.landing-benefit h3 { margin: 0; font-size: var(--pw-font-size-md); font-weight: var(--pw-font-weight-semibold); color: var(--pw-color-text); }
.landing-benefit p { margin: var(--pw-space-1) 0 0; font-size: var(--pw-font-size-sm); color: var(--pw-color-text-muted); }

/* 10. BPMN spotlight ========================================================= */
.landing-spotlight { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--pw-space-10); align-items: center; }
.landing-bpmn-figure { padding: var(--pw-space-6); background: var(--pw-color-surface); border: 1px solid var(--pw-color-border); border-radius: var(--pw-radius-lg); box-shadow: var(--pw-shadow-2); }
.landing-bpmn-figure svg { width: 100%; height: auto; }
.landing-bpmn-pool { fill: none; stroke: var(--pw-color-border-strong); }
.landing-bpmn-lane { fill: var(--pw-color-surface-subtle); stroke: var(--pw-color-border-strong); }
.landing-bpmn-event { fill: var(--pw-color-surface); stroke: var(--pw-color-text); }
.landing-bpmn-event-end { fill: var(--pw-color-surface); stroke: var(--pw-color-danger); stroke-width: 2.5; }
.landing-bpmn-task { fill: var(--pw-color-primary-subtle); stroke: var(--pw-color-primary); }
.landing-bpmn-gateway { fill: var(--pw-color-accent-purple-subtle); stroke: var(--pw-color-accent-purple); }
.landing-bpmn-flow { stroke: var(--pw-color-text-muted); fill: none; }
.landing-bpmn-note { fill: var(--pw-color-accent-teal-subtle); stroke: var(--pw-color-accent-teal); }
.landing-bpmn-label { font-size: 6px; fill: var(--pw-color-text-secondary); font-family: var(--pw-font-sans); }
.landing-legend { display: flex; flex-direction: column; gap: var(--pw-space-3); }
.landing-legend-item { display: flex; align-items: center; gap: var(--pw-space-3); }
.landing-legend-swatch { flex: 0 0 auto; width: 14px; height: 14px; border-radius: var(--pw-radius-xs); }
.landing-legend-swatch.is-task { background: var(--pw-color-primary-subtle); border: 2px solid var(--pw-color-primary); }
.landing-legend-swatch.is-gateway { background: var(--pw-color-accent-purple-subtle); border: 2px solid var(--pw-color-accent-purple); }
.landing-legend-swatch.is-event { background: var(--pw-color-surface); border: 2px solid var(--pw-color-text); border-radius: var(--pw-radius-full); }
.landing-legend-swatch.is-lane { background: var(--pw-color-surface-subtle); border: 2px solid var(--pw-color-border-strong); }
.landing-legend-swatch.is-note { background: var(--pw-color-accent-teal-subtle); border: 2px solid var(--pw-color-accent-teal); }
.landing-legend-item strong { font-size: var(--pw-font-size-sm); color: var(--pw-color-text); }
.landing-legend-item span.landing-legend-text { font-size: var(--pw-font-size-sm); color: var(--pw-color-text-muted); }

/* 11. Testimonials ============================================================ */
.landing-testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pw-space-6); }
.landing-testimonial { padding: var(--pw-space-6); background: var(--pw-color-surface); border: 1px solid var(--pw-color-border); border-radius: var(--pw-radius-lg); box-shadow: var(--pw-shadow-1); display: flex; flex-direction: column; gap: var(--pw-space-4); }
.landing-testimonial blockquote { margin: 0; font-size: var(--pw-font-size-md); color: var(--pw-color-text-secondary); line-height: var(--pw-line-height-normal); }
.landing-testimonial footer { margin: 0; font-size: var(--pw-font-size-sm); color: var(--pw-color-text-muted); }
.landing-testimonial footer strong { display: block; color: var(--pw-color-text); font-weight: var(--pw-font-weight-semibold); }

/* 12. Final CTA =============================================================== */
.landing-cta { text-align: center; }
.landing-cta .landing-section-title { color: var(--pw-color-chrome-text-strong); }
.landing-cta-actions { margin-top: var(--pw-space-8); display: flex; justify-content: center; flex-wrap: wrap; gap: var(--pw-space-3); }
.landing-band-chrome .btn-secondary { background: transparent; color: var(--pw-color-chrome-text-strong); border-color: var(--pw-color-chrome-divider); }
.landing-band-chrome .btn-secondary:hover { background: var(--pw-color-chrome-hover); color: var(--pw-color-chrome-text-strong); }

/* 13. Footer (overrides base.html's minimal app-footer block for this page) === */
.landing-footer { background: var(--pw-color-chrome-strong); color: var(--pw-color-chrome-text); padding-block: var(--pw-space-12) var(--pw-space-8); }
.landing-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--pw-space-8); }
.landing-footer-brand { display: flex; align-items: center; gap: var(--pw-space-3); color: var(--pw-color-chrome-text-strong); font-weight: var(--pw-font-weight-semibold); }
.landing-footer-tagline { margin: var(--pw-space-3) 0 0; max-width: 32ch; font-size: var(--pw-font-size-sm); color: var(--pw-color-chrome-text-muted); }
.landing-footer-col h4 { margin: 0 0 var(--pw-space-3); font-size: var(--pw-font-size-xs); font-weight: var(--pw-font-weight-semibold); text-transform: uppercase; letter-spacing: var(--pw-letter-spacing-caps); color: var(--pw-color-chrome-text-muted); }
.landing-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--pw-space-2); }
.landing-footer-col a { color: var(--pw-color-chrome-text); text-decoration: none; font-size: var(--pw-font-size-sm); }
.landing-footer-col a:hover { color: var(--pw-color-chrome-text-strong); text-decoration: underline; }
.landing-footer-bottom {
  margin-top: var(--pw-space-10); padding-top: var(--pw-space-6); border-top: 1px solid var(--pw-color-chrome-divider);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--pw-space-3);
  font-size: var(--pw-font-size-xs); color: var(--pw-color-chrome-text-muted);
}

/* 14. Responsive & print ====================================================== */
@media (max-width: 1180px) {
  .landing-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-lifecycle { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--pw-space-8); }
  .landing-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .landing-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .landing-spotlight { grid-template-columns: minmax(0, 1fr); }
  .landing-value-grid, .landing-testimonial-grid, .landing-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pw-space-8) var(--pw-space-6); }
}
@media (max-width: 640px) {
  .landing-section { padding-block: var(--pw-space-10); }
  .landing-section-inner { padding-inline: var(--pw-space-4); }
  .landing-hero-inner { padding-inline: var(--pw-space-4); }
  .landing-capability-grid, .landing-showcase-grid, .landing-value-grid, .landing-testimonial-grid, .landing-benefit-grid, .landing-stats-grid { grid-template-columns: minmax(0, 1fr); }
  .landing-lifecycle { grid-template-columns: minmax(0, 1fr); }
  .landing-lifecycle-step::before { display: none; }
  .landing-footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .landing-hero-art, .landing-login-panel { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-stat-value { transition: none; }
}

/* 16. "The Process Weave" front page (2026-11) ============================================
 * One story, top to bottom: five strands become one governed process (hero); the problem is the
 * strands left apart; the weave brings them together; how it works is one governed pipeline; the
 * Token Game proves the synchronisation in genuine 3D; business impact moves from before to after;
 * the capabilities are one connected system. Each area keeps its detail behind a single quiet
 * ellipsis control. Colours are the theme-invariant --pw-weave-* brand tokens (design_tokens.css),
 * so the dark bands stay dark and the paper bands stay light in both themes.
 * Motion is opt-in: landing.js animates only without a reduced-motion request, pauses off screen,
 * and every figure is a complete static picture without it. ================================= */
.landing { background: var(--pw-weave-paper); color: var(--pw-weave-ink); }
.pw-dark { background: var(--pw-weave-ground); color: var(--pw-weave-on-dark-muted); }
.pw-dark .landing-section-title, .pw-dark .pw-subhead, .pw-dark h3 { color: var(--pw-weave-on-dark); }
.pw-dark .landing-section-lede { color: var(--pw-weave-on-dark-muted); }
.landing .pw-dark .eyebrow, .landing .pw-dark.eyebrow { color: var(--pw-weave-strand-knowledge); }
.landing .eyebrow { color: var(--pw-teal-ink); }
.landing-section-title { color: var(--pw-weave-ink); }
.landing-section-lede { color: var(--pw-weave-ink-muted); }
.pw-dark a:not(.btn) { color: var(--pw-weave-strand-knowledge); }
.pw-dark .landing-login-panel a:not(.btn) { color: var(--pw-color-link); }
.landing-band-alt { background: var(--pw-weave-mist); }
.pw-dark a:focus-visible { outline: none; box-shadow: var(--pw-weave-focus-ring); border-radius: var(--pw-radius-xs); }
.pw-dark .btn:focus-visible, .pw-dark summary:focus-visible, .pw-dark button:focus-visible { box-shadow: var(--pw-weave-focus-ring); }

/* Hero */
.landing-hero { padding-block: var(--pw-space-10) 0; background: linear-gradient(180deg, var(--pw-weave-ground), var(--pw-weave-ground-raised)); }
.landing-hero-title { margin-top: var(--pw-space-3); font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); color: var(--pw-weave-on-dark); }
.landing-hero-lede { max-width: 52ch; margin-top: var(--pw-space-4); font-size: var(--pw-font-size-xl); color: var(--pw-weave-on-dark-muted); }
.landing-hero-actions { margin-top: var(--pw-space-6); }
.pw-tagline { margin: var(--pw-space-5) 0 0; padding-left: var(--pw-space-3); border-left: 3px solid var(--pw-weave-strand-decisions); font-weight: var(--pw-font-weight-semibold); color: var(--pw-weave-on-dark); }
.landing-hero .landing-login-panel { background: var(--pw-weave-mist); color: var(--pw-weave-ink); border: 1px solid var(--pw-weave-line); box-shadow: var(--pw-shadow-3); }
.landing-hero .landing-login-panel .card-title, .landing-hero .landing-login-panel .card-description { color: var(--pw-weave-ink); }
.pw-weave-wrap { padding-block: var(--pw-space-4) var(--pw-space-6); }
.pw-weave-svg { width: 100%; height: auto; display: block; }
.pw-weave-gap { fill: none; stroke: var(--pw-weave-ground); stroke-width: 8; }
.pw-weave-strand { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.pw-weave-process { stroke: var(--pw-weave-strand-process); }
.pw-weave-evidence { stroke: var(--pw-weave-strand-evidence); }
.pw-weave-people { stroke: var(--pw-weave-strand-people); }
.pw-weave-decisions { stroke: var(--pw-weave-strand-decisions); }
.pw-weave-knowledge { stroke: var(--pw-weave-strand-knowledge); }
.pw-weave-rail-base { fill: none; stroke: var(--pw-weave-rail-base); stroke-width: 9; stroke-linecap: round; }
.pw-weave-rail { fill: none; stroke: var(--pw-weave-rail); stroke-width: 3; stroke-linecap: round; }
.pw-weave-gate { fill: var(--pw-weave-gate-top); stroke: var(--pw-weave-strand-decisions); stroke-width: 1.5; transition: fill 0.5s ease; }
.pw-weave-gate-mark { fill: none; stroke: var(--pw-weave-on-dark); stroke-width: 2.2; }
.pw-weave-block { fill: var(--pw-weave-block-top); stroke: var(--pw-weave-block-edge); stroke-width: 1.2; transition: fill 0.5s ease; }
.pw-weave-end { fill: var(--pw-weave-ground); stroke: var(--pw-weave-on-dark); stroke-width: 3; transition: fill 0.5s ease; }
.pw-weave-gate.pw-lit, .pw-weave-block.pw-lit { fill: var(--pw-weave-active-top); }
.pw-weave-end.pw-lit { fill: var(--pw-weave-strand-evidence); }
.pw-weave-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--pw-space-2) var(--pw-space-5); margin: var(--pw-space-3) 0 0; padding: 0; font-size: var(--pw-font-size-sm); color: var(--pw-weave-on-dark-muted); }
.pw-weave-legend li { display: inline-flex; align-items: center; gap: var(--pw-space-2); }
.pw-weave-legend li::before { content: ""; width: 10px; height: 10px; border-radius: var(--pw-radius-full); background: var(--pw-weave-strand-process); }
.pw-leg-evidence::before { background: var(--pw-weave-strand-evidence); }
.pw-leg-people::before { background: var(--pw-weave-strand-people); }
.pw-leg-decisions::before { background: var(--pw-weave-strand-decisions); }
.pw-leg-knowledge::before { background: var(--pw-weave-strand-knowledge); }

/* Moving pulses (created by landing.js): a light fill with a strand-coloured ring, visible on dark and on paper */
.pw-pulse { stroke-width: 2; pointer-events: none; fill: var(--pw-steel-light); stroke: var(--pw-weave-strand-process); }
.pw-pulse-evidence { fill: var(--pw-mist-teal); stroke: var(--pw-weave-strand-evidence); }
.pw-pulse-people { fill: var(--pw-off-white); stroke: var(--pw-slate-ink); }
.pw-pulse-decisions, .pw-pulse-rework { fill: var(--pw-weave-sphere-wait-hi); stroke: var(--pw-weave-strand-decisions); }
.pw-pulse-knowledge { fill: var(--pw-mist-teal); stroke: var(--pw-teal-ink); }
.pw-pulse-merged { fill: var(--pw-weave-sphere-done-hi); stroke: var(--pw-weave-strand-evidence); stroke-width: 2.4; }

/* Layout helpers */
.pw-section-tight { padding-block: var(--pw-space-12); }
.pw-section-tight .landing-section-head { margin-bottom: var(--pw-space-6); }
.pw-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pw-subhead { margin: 0 0 var(--pw-space-3); font-size: var(--pw-font-size-lg); font-weight: var(--pw-font-weight-semibold); color: var(--pw-weave-ink); }
.pw-subhead-spaced { margin-top: var(--pw-space-8); }
.pw-note { margin: var(--pw-space-3) 0 0; font-size: var(--pw-font-size-sm); color: var(--pw-weave-ink-muted); }
.pw-note-dark { color: var(--pw-weave-on-dark-muted); }
.pw-body { margin: 0 0 var(--pw-space-4); color: var(--pw-weave-ink-muted); }
.pw-illustrative {
  display: inline-block; padding: 1px var(--pw-space-2); border: 1px solid var(--pw-weave-strand-decisions); border-radius: var(--pw-radius-full);
  font-size: var(--pw-font-size-xs); font-weight: var(--pw-font-weight-semibold); text-transform: none; letter-spacing: 0;
  color: var(--pw-copper-ink); background: transparent;
}
.pw-dark .pw-illustrative { color: var(--pw-weave-strand-decisions); }
.pw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--pw-space-2); }
.pw-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pw-space-2); }
.pw-card { padding: var(--pw-space-5); border: 1px solid var(--pw-weave-line-paper); border-radius: var(--pw-radius-lg); background: var(--pw-weave-paper); box-shadow: var(--pw-shadow-1); }
.pw-card p { margin: 0 0 var(--pw-space-2); color: var(--pw-weave-ink-muted); }
.pw-card p:last-child { margin-bottom: 0; }
.pw-card-dark { background: var(--pw-weave-panel); border-color: var(--pw-weave-line); box-shadow: none; }
.pw-card-dark p { color: var(--pw-weave-on-dark-muted); }
.pw-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pw-space-5); margin-bottom: var(--pw-space-6); }
.pw-card-without { border-top: 4px solid var(--pw-weave-strand-decisions); }
.pw-card-with { border-top: 4px solid var(--pw-weave-strand-evidence); }
.pw-tag { display: inline-block; padding: 1px var(--pw-space-2); border-radius: var(--pw-radius-full); font-size: var(--pw-font-size-xs); font-weight: var(--pw-font-weight-semibold); }
.pw-tag-warn { background: var(--pw-color-warning-subtle); color: var(--pw-color-warning); border: 1px solid var(--pw-color-warning-border); }
.pw-tag-good { background: var(--pw-weave-ground-raised); color: var(--pw-weave-strand-knowledge); border: 1px solid var(--pw-weave-strand-evidence); }
.pw-status { display: inline-block; padding: 1px var(--pw-space-2); border-radius: var(--pw-radius-full); font-size: var(--pw-font-size-xs); font-weight: var(--pw-font-weight-semibold); white-space: nowrap; }
.pw-status-on { background: var(--pw-weave-paper); color: var(--pw-teal-ink); border: 1px solid var(--pw-weave-strand-evidence); }
.pw-status-soon { background: var(--pw-weave-paper); color: var(--pw-weave-ink-muted); border: 1px dashed var(--pw-weave-strand-process); }

/* The ellipsis: one quiet, accessible disclosure control per area (native <details>, no script needed) */
.pw-ellipsis { margin-top: var(--pw-space-5); text-align: center; }
.pw-ellipsis > summary {
  display: inline-grid; place-items: center; min-width: var(--pw-space-12); height: var(--pw-space-8); padding: 0 var(--pw-space-3);
  border: 1px solid var(--pw-weave-line-paper); border-radius: var(--pw-radius-full); list-style: none; cursor: pointer;
  color: var(--pw-weave-ink-muted); font-size: var(--pw-font-size-xl); line-height: 1; letter-spacing: 0.1em;
}
.pw-ellipsis > summary::-webkit-details-marker { display: none; }
.pw-ellipsis > summary:hover { border-color: var(--pw-teal-ink); color: var(--pw-teal-ink); }
.pw-ellipsis > summary:focus-visible { outline: none; box-shadow: var(--pw-shadow-focus); }
.pw-ellipsis[open] > summary { border-color: var(--pw-teal-ink); color: var(--pw-teal-ink); }
.pw-ellipsis-dark > summary { border-color: var(--pw-weave-line); color: var(--pw-weave-on-dark-muted); }
.pw-ellipsis-dark > summary:hover, .pw-ellipsis-dark[open] > summary { border-color: var(--pw-weave-strand-knowledge); color: var(--pw-weave-strand-knowledge); }
.pw-ellipsis-body { margin-top: var(--pw-space-5); padding-top: var(--pw-space-5); border-top: 1px solid var(--pw-weave-line-paper); text-align: left; }
.pw-ellipsis-dark .pw-ellipsis-body { border-top-color: var(--pw-weave-line); }
.pw-detail-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pw-space-5); }
.pw-detail-list li { padding-top: var(--pw-space-3); border-top: 3px solid var(--pw-weave-strand-process); }
.pw-detail-list li:nth-child(2) { border-top-color: var(--pw-weave-strand-decisions); }
.pw-detail-list li:nth-child(3) { border-top-color: var(--pw-weave-strand-evidence); }
.pw-detail-list p { margin: 0; color: var(--pw-weave-ink-muted); }
@media (prefers-reduced-motion: no-preference) {
  .pw-ellipsis[open] > .pw-ellipsis-body { animation: pw-ellipsis-in 0.25s ease-out; }
}
@keyframes pw-ellipsis-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Quiet copy blocks */
.pw-bridge { max-width: 60ch; margin: var(--pw-space-5) auto 0; text-align: center; font-size: var(--pw-font-size-lg); font-weight: var(--pw-font-weight-semibold); color: var(--pw-weave-ink); }
.pw-prose { max-width: 72ch; margin-inline: auto; }
.pw-prose p { margin: 0 0 var(--pw-space-3); color: var(--pw-weave-ink-muted); }
.pw-fam-copy { margin: 0 0 var(--pw-space-2); font-size: var(--pw-font-size-sm); line-height: var(--pw-line-height-snug); color: var(--pw-weave-on-dark); }

/* Figures (shared) */
.pw-fig { margin: 0; }
.pw-problem { max-width: 960px; margin-inline: auto; }
.pwp-region, .pwh-bpmn, .pwh-kpi, .pwh-signals, .pwh-alts, .pwb-queue-row { pointer-events: none; }
.pw-callout-process { border-top-color: var(--pw-weave-strand-process); }
.pwp-region-1, .pwp-region-2, .pwp-region-3 { vector-effect: none; }
.pw-ellipsis-dots { display: block; transform: translateY(-0.12em); }
.pw-leg-process::before { background: var(--pw-weave-strand-process); }
.pwb-time { fill: var(--pw-weave-strand-evidence); }
.pw-src-process { border-right: 3px solid var(--pw-weave-strand-process); padding-right: var(--pw-space-2); }
.pw-src-evidence { border-right: 3px solid var(--pw-weave-strand-evidence); padding-right: var(--pw-space-2); }
.pw-src-people { border-right: 3px solid var(--pw-slate-ink); padding-right: var(--pw-space-2); }
.pw-src-decisions { border-right: 3px solid var(--pw-copper-ink); padding-right: var(--pw-space-2); }
.pw-src-knowledge { border-right: 3px solid var(--pw-teal-ink); padding-right: var(--pw-space-2); }

/* 2. The problem: fragments that never join */
.pw-problem-svg { width: 100%; height: auto; display: block; }
.pwp-arrowhead { fill: var(--pw-slate-ink); }
.pwp-box { fill: var(--pw-weave-mist); stroke: var(--pw-slate-ink); stroke-width: 1.5; }
.pwp-line { fill: none; stroke: var(--pw-slate-ink); stroke-width: 1.6; }
.pwp-line-dim { stroke-dasharray: 3 5; }
.pwp-try { fill: none; stroke: var(--pw-weave-strand-evidence); stroke-width: 2.2; stroke-linecap: round; }
.pwp-data { fill: var(--pw-weave-mist); stroke: var(--pw-teal-ink); stroke-width: 1.8; }
.pwp-data-line { fill: none; stroke: var(--pw-teal-ink); stroke-width: 1.4; }
.pwp-person { fill: var(--pw-weave-mist); stroke: var(--pw-copper-ink); stroke-width: 1.8; }
.pwp-run-path { fill: none; stroke: none; }
.pwp-queue { fill: var(--pw-weave-strand-decisions); stroke: var(--pw-copper-ink); stroke-width: 1; }
.pwp-loop { fill: none; stroke: var(--pw-copper-ink); stroke-width: 2; stroke-dasharray: 5 4; }
.pwp-decision { fill: var(--pw-weave-mist); stroke: var(--pw-copper-ink); stroke-width: 2; }
.pwp-evidence { fill: none; stroke: var(--pw-weave-strand-evidence); stroke-width: 3; stroke-linecap: round; }
.pwp-ghost { fill: none; stroke: var(--pw-slate-ink); stroke-width: 1.6; stroke-dasharray: 2 5; }
.pwp-cap { fill: var(--pw-weave-paper); stroke: var(--pw-weave-strand-evidence); stroke-width: 2; }
.pwp-halo { fill: none; stroke: var(--pw-weave-strand-decisions); stroke-width: 2; stroke-dasharray: 3 6; }
.pw-callouts { list-style: none; margin: var(--pw-space-4) 0 0; padding: 0; display: grid; grid-template-columns: 33% 37% 30%; }
.pw-callout { margin: 0; padding: var(--pw-space-2) var(--pw-space-4) 0 0; border-top: 3px solid var(--pw-weave-strand-process); font-size: var(--pw-font-size-lg); font-weight: var(--pw-font-weight-semibold); color: var(--pw-weave-ink); }
.pw-callout-delay { border-top-color: var(--pw-weave-strand-decisions); margin-inline: var(--pw-space-3); }
.pw-callout-decision { border-top-color: var(--pw-weave-strand-evidence); }

/* 3. The weave: the strands come together */
.pw-weavefig { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 960 / 300; }
.pw-weavefig-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pwg-strand { fill: none; stroke-width: 3; stroke-linecap: round; }
.pwg-process { stroke: var(--pw-weave-strand-process); }
.pwg-evidence { stroke: var(--pw-weave-strand-evidence); }
.pwg-people { stroke: var(--pw-weave-strand-people); }
.pwg-decisions { stroke: var(--pw-weave-strand-decisions); }
.pwg-knowledge { stroke: var(--pw-weave-strand-knowledge); }
.pwg-out { fill: none; stroke: var(--pw-weave-rail); stroke-width: 4; stroke-linecap: round; transition: stroke 0.4s ease; }
.pwg-out.is-complete { stroke: var(--pw-weave-strand-knowledge); }
.pwg-hub { fill: var(--pw-weave-gate-top); stroke: var(--pw-weave-strand-decisions); stroke-width: 2; transition: fill 0.5s ease; }
.pwg-hub.is-active { fill: var(--pw-weave-active-top); }
.pwg-hub-mark { fill: none; stroke: var(--pw-weave-on-dark); stroke-width: 3; }
.pw-pills { list-style: none; margin: 0; padding: 0; }
.pw-pill {
  position: absolute; left: 0; width: 21.5%; padding: var(--pw-space-2) var(--pw-space-3); text-align: center;
  border: 1px solid var(--pw-weave-line); border-bottom: 3px solid var(--pw-weave-strand-process); border-radius: var(--pw-radius-md);
  background: var(--pw-weave-panel); color: var(--pw-weave-on-dark); font-weight: var(--pw-font-weight-semibold);
  transform: translateY(-50%);
}
.pw-strand-process { border-bottom-color: var(--pw-weave-strand-process); }
.pw-strand-evidence { border-bottom-color: var(--pw-weave-strand-evidence); }
.pw-strand-people { border-bottom-color: var(--pw-weave-strand-people); }
.pw-strand-decisions { border-bottom-color: var(--pw-weave-strand-decisions); }
.pw-strand-knowledge { border-bottom-color: var(--pw-weave-strand-knowledge); }
.pw-pill-1 { top: 10%; } .pw-pill-2 { top: 30%; } .pw-pill-3 { top: 50%; } .pw-pill-4 { top: 70%; } .pw-pill-5 { top: 90%; }
.pw-weavefig-hub { position: absolute; left: 54.2%; top: 80%; margin: 0; transform: translateX(-50%); font-weight: var(--pw-font-weight-bold); color: var(--pw-weave-on-dark); text-align: center; white-space: nowrap; }
.pw-weavefig-out { position: absolute; left: 73.5%; top: 50%; width: 26%; margin: 0; padding: var(--pw-space-3) var(--pw-space-4); transform: translateY(-50%); border: 1px solid var(--pw-weave-strand-evidence); border-radius: var(--pw-radius-lg); background: var(--pw-weave-ground-raised); color: var(--pw-weave-on-dark); font-weight: var(--pw-font-weight-semibold); text-align: center; transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.pw-weavefig-out.is-complete { border-color: var(--pw-weave-strand-knowledge); background: var(--pw-weave-active-top); box-shadow: var(--pw-shadow-3); }
/* 4. How it works: one integrated pipeline */
.pw-how { position: relative; max-width: 1000px; margin: 0 auto; }
.pw-how-svg { width: 100%; height: auto; display: block; }
.pwh-strand { fill: none; stroke-width: 3; stroke-linecap: round; }
.pwh-process { stroke: var(--pw-weave-strand-process); }
.pwh-evidence { stroke: var(--pw-weave-strand-evidence); }
.pwh-people { stroke: var(--pw-slate-ink); }
.pwh-decisions { stroke: var(--pw-copper-ink); }
.pwh-knowledge { stroke: var(--pw-teal-ink); }
.pwh-out { stroke: var(--pw-weave-strand-process); stroke-width: 2.4; }
.pwh-panel { fill: var(--pw-weave-ground-raised); stroke: var(--pw-weave-block-edge); stroke-width: 1.5; }
.pwh-flow { fill: none; stroke: var(--pw-weave-rail); stroke-width: 1.8; }
.pwh-ev { fill: var(--pw-weave-ground); stroke: var(--pw-weave-on-dark-muted); stroke-width: 2; }
.pwh-ev-end { stroke: var(--pw-weave-on-dark); stroke-width: 3.5; }
.pwh-task { fill: var(--pw-weave-block-top); stroke: var(--pw-weave-block-edge); stroke-width: 1.4; }
.pwh-gate { fill: var(--pw-weave-gate-top); stroke: var(--pw-weave-strand-decisions); stroke-width: 1.6; }
.pwh-friction { fill: none; stroke: var(--pw-weave-strand-decisions); stroke-width: 2.2; stroke-dasharray: 4 4; }
.pwh-queue { fill: var(--pw-weave-strand-decisions); }
.pwh-bar { fill: var(--pw-weave-strand-process); }
.pwh-bar-hot { fill: var(--pw-weave-strand-decisions); }
.pwh-axis { fill: none; stroke: var(--pw-weave-on-dark-muted); stroke-width: 1.2; }
.pwh-sig { fill: none; stroke: var(--pw-weave-strand-knowledge); stroke-width: 2; stroke-linejoin: round; }
.pwh-sig-mark { fill: none; stroke: var(--pw-weave-strand-knowledge); stroke-width: 2; stroke-linecap: round; }
.pwh-sig-dot { fill: var(--pw-weave-strand-knowledge); }
.pwh-meter { fill: var(--pw-weave-on-dark-muted); }
.pwh-meter-good { fill: var(--pw-weave-strand-evidence); }
.pwh-meter-risk { fill: var(--pw-weave-strand-decisions); }
.pwh-approve { fill: var(--pw-weave-ground-raised); stroke: var(--pw-weave-strand-decisions); stroke-width: 3; }
.pwh-approve-mark { fill: none; stroke: var(--pw-weave-on-dark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pwh-run-path { fill: none; stroke: none; }
.pw-how-phrases { list-style: none; margin: 0; padding: 0; }
.pw-how-phrase { position: absolute; margin: 0; font-size: var(--pw-font-size-lg); font-weight: var(--pw-font-weight-bold); color: var(--pw-weave-ink); }
.pw-how-1 { left: 0; top: 0; }
.pw-how-2 { left: 29%; width: 37%; top: 0; text-align: center; }
.pw-how-3 { left: 66%; width: 34%; top: 0; text-align: center; }
.pw-how-4 { left: 70%; width: 30%; top: 88%; text-align: center; color: var(--pw-copper-ink); }
.pw-how-sources { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; width: 16.5%; top: calc(20% - 12px); height: calc(60% + 24px); display: flex; flex-direction: column; justify-content: space-between; }
.pw-how-sources li { min-height: 24px; line-height: 1.2; font-size: var(--pw-font-size-sm); font-weight: var(--pw-font-weight-semibold); text-align: right; color: var(--pw-weave-ink-muted); }

/* Detail blocks inside an ellipsis */
.pw-inputs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pw-space-3); margin-bottom: var(--pw-space-5); }
.pw-chip { padding: var(--pw-space-2) var(--pw-space-4); border-radius: var(--pw-radius-full); background: var(--pw-weave-ground-raised); color: var(--pw-weave-on-dark); font-weight: var(--pw-font-weight-semibold); }
.pw-plus { font-size: var(--pw-font-size-2xl); color: var(--pw-weave-strand-evidence); font-weight: var(--pw-font-weight-bold); }
.pw-pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--pw-space-3); counter-reset: pw-step; }
.pw-pipeline-five { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: var(--pw-space-5) 0; }
.pw-pipeline li { counter-increment: pw-step; position: relative; padding: var(--pw-space-4); border: 1px solid var(--pw-weave-line-paper); border-radius: var(--pw-radius-md); background: var(--pw-weave-paper); font-weight: var(--pw-font-weight-semibold); color: var(--pw-weave-ink); }
.pw-pipeline li::before { content: counter(pw-step); display: block; margin-bottom: var(--pw-space-1); font-size: var(--pw-font-size-xs); color: var(--pw-teal-ink); }
.pw-pipeline li:last-child { border-color: var(--pw-weave-strand-evidence); background: var(--pw-weave-mist); }
.pw-principle { margin: var(--pw-space-5) 0; font-size: var(--pw-font-size-2xl); font-weight: var(--pw-font-weight-bold); color: var(--pw-weave-strand-decisions); }
.pw-principle-paper { color: var(--pw-copper-ink); }
.pw-steps { margin: 0; padding-left: var(--pw-space-5); display: grid; gap: var(--pw-space-2); color: var(--pw-weave-ink-muted); }
.pw-flow-line { list-style: none; margin: 0 0 var(--pw-space-6); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--pw-space-4); position: relative; }
.pw-flow-step { position: relative; padding-top: var(--pw-space-10); text-align: center; }
.pw-flow-step::before { content: ""; position: absolute; top: var(--pw-space-4); left: -50%; width: 100%; height: 3px; background: var(--pw-weave-strand-evidence); }
.pw-flow-step:first-child::before { display: none; }
.pw-flow-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: var(--pw-space-8); height: var(--pw-space-8); display: grid; place-items: center; border-radius: var(--pw-radius-full); background: var(--pw-weave-ground); color: var(--pw-weave-on-dark); font-weight: var(--pw-font-weight-bold); border: 3px solid var(--pw-weave-strand-decisions); }
.pw-flow-step h4 { margin: 0 0 var(--pw-space-2); font-size: var(--pw-font-size-xl); color: var(--pw-weave-ink); }
.pw-flow-step p { margin: 0; color: var(--pw-weave-ink-muted); }
.pw-journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pw-space-4); }
.pw-journey-stage { padding: var(--pw-space-5); border: 1px solid var(--pw-weave-line-paper); border-top: 4px solid var(--pw-weave-strand-evidence); border-radius: var(--pw-radius-lg); background: var(--pw-weave-paper); }
.pw-journey-stage h4 { margin: 0 0 var(--pw-space-3); font-size: var(--pw-font-size-xl); color: var(--pw-weave-ink); }

/* 5. Proof: the Token Game */
.pw-proof { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pw-space-6); }
.pw-proof-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--pw-space-8); align-items: end; }
.pw-proof-head, .pw-proof-aside { min-width: 0; }
.pw-proof-copy .landing-section-title { font-size: var(--pw-font-size-2xl); }
.pw-proof-copy .landing-section-lede { font-size: var(--pw-font-size-md); }
.pw-parallel-note { margin: 0 0 var(--pw-space-5); padding-left: var(--pw-space-3); border-left: 3px solid var(--pw-weave-strand-evidence); color: var(--pw-weave-on-dark); }
.pw-proof-tokens { display: flex; align-items: center; gap: var(--pw-space-2); margin: 0; font-weight: var(--pw-font-weight-bold); color: var(--pw-weave-on-dark-muted); }
.pw-proof-count { display: inline-grid; place-items: center; width: var(--pw-space-8); height: var(--pw-space-8); border-radius: var(--pw-radius-full); background: var(--pw-weave-panel); border: 1px solid var(--pw-weave-strand-evidence); color: var(--pw-weave-on-dark); }
.pw-chips { display: flex; flex-wrap: wrap; gap: var(--pw-space-2); margin: var(--pw-space-4) 0 0; padding: 0; }
.pw-chip-stat { padding: var(--pw-space-1) var(--pw-space-3); border: 1px solid var(--pw-weave-line); border-radius: var(--pw-radius-md); background: var(--pw-weave-panel); }
.pw-chip-stat dt { font-size: var(--pw-font-size-xs); text-transform: uppercase; color: var(--pw-weave-on-dark-muted); }
.pw-chip-stat dd { margin: 0; font-size: var(--pw-font-size-md); font-weight: var(--pw-font-weight-semibold); color: var(--pw-weave-on-dark); }
.pw-from { color: var(--pw-weave-on-dark-muted); font-weight: var(--pw-font-weight-regular); }
.pw-to { color: var(--pw-weave-strand-knowledge); }
.pw-chips-note { margin: var(--pw-space-3) 0 0; font-size: var(--pw-font-size-xs); color: var(--pw-weave-on-dark-muted); }
.pw-stage { display: grid; gap: var(--pw-space-2); min-width: 0; }
.pw-panel { margin: 0; padding: var(--pw-space-3) var(--pw-space-4); border: 1px solid var(--pw-weave-line); border-radius: var(--pw-radius-lg); background: var(--pw-weave-panel); color: var(--pw-weave-on-dark-muted); box-shadow: var(--pw-shadow-3); min-width: 0; }
.pw-panel figcaption { margin-bottom: var(--pw-space-1); font-size: var(--pw-font-size-sm); font-weight: var(--pw-font-weight-semibold); color: var(--pw-weave-on-dark); }
.pw-svg-caption { margin: var(--pw-space-1) 0 0; font-size: var(--pw-font-size-sm); color: var(--pw-weave-on-dark-muted); }
.pw-scene-note { margin-top: var(--pw-space-1); font-size: var(--pw-font-size-xs); }

/* The genuine 3D scene (a canvas, drawn by landing-3d.js) and the flat SVG that stays as its fallback */
.pw-scene3d { display: none; position: relative; aspect-ratio: 2.7 / 1; }
.pw-stage.is-3d .pw-scene3d { display: block; }
.pw-stage.is-3d .pw-scene2d, .pw-stage.is-3d .pw-scene-note { display: none; }
.pw3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pw3d-labels { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pw3d-label, .pw3d-note { paint-order: stroke; stroke: var(--pw-weave-ground); stroke-width: 3px; stroke-linejoin: round; }
.pw3d-label { font-size: 13px; font-weight: var(--pw-font-weight-semibold); fill: var(--pw-weave-on-dark); }
.pw3d-note { font-size: 11.5px; fill: var(--pw-weave-on-dark-muted); }
.pw-scene2d { display: block; }
.pw-svg { width: 100%; height: auto; display: block; }
.pw-svg-event { fill: var(--pw-weave-ground-raised); stroke: var(--pw-weave-on-dark-muted); stroke-width: 1.5; }
.pw-svg-event-end { stroke: var(--pw-weave-on-dark); stroke-width: 3; }
.pw-svg-task, .pw-svg-gateway { fill: var(--pw-weave-block-top); stroke: var(--pw-weave-block-edge); stroke-width: 1.25; }
.pw-svg-gateway { fill: var(--pw-weave-gate-top); stroke: var(--pw-weave-strand-decisions); }
.pw-svg-plus { fill: none; stroke: var(--pw-weave-on-dark); stroke-width: 2; }
.pw-svg-flow { fill: none; stroke: var(--pw-weave-rail); stroke-width: 1.2; }
.pw-svg-arrowhead { fill: var(--pw-weave-rail); }
.pw-svg-text { font-size: 12px; fill: var(--pw-weave-on-dark); }
.pw-svg-note { font-size: 10.5px; fill: var(--pw-weave-on-dark-muted); }
.pw-node-good { stroke: var(--pw-weave-strand-evidence); stroke-width: 2; }
.pw-token-static { fill: var(--pw-weave-sphere-mid); stroke: var(--pw-weave-ground); stroke-width: 1.5; }
.pw-tokens { pointer-events: none; }
.pw-svg-mini { width: 100%; height: auto; display: block; margin-bottom: var(--pw-space-3); }
.pw-bar-value { fill: var(--pw-weave-strand-evidence); }
.pw-bar-value-light { fill: var(--pw-weave-strand-process); }
.pw-bar-wait { fill: var(--pw-weave-strand-decisions); }
.pw-bar-rework { fill: var(--pw-color-diagram-error); }
.pw-bar-gap { fill: var(--pw-color-diagram-error); }
.pw-scroll { overflow-x: auto; }
.pw-scroll-hint { display: none; margin: var(--pw-space-1) 0 0; font-size: var(--pw-font-size-xs); color: var(--pw-weave-on-dark-muted); }
.pw-stage-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--pw-space-6); }
.pw-table { width: 100%; border-collapse: collapse; font-size: var(--pw-font-size-md); color: var(--pw-weave-on-dark-muted); }
.pw-table th, .pw-table td { padding: var(--pw-space-2) var(--pw-space-3); text-align: left; border-bottom: 1px solid var(--pw-weave-line); }
.pw-table thead th { font-size: var(--pw-font-size-xs); text-transform: uppercase; color: var(--pw-weave-on-dark-muted); }
.pw-table tbody th { font-weight: var(--pw-font-weight-semibold); color: var(--pw-weave-on-dark); }
.pw-findings, .pw-indicators { min-width: 0; }

/* 6. Business impact: from before to after */
.pw-impact { margin: 0; }
.pw-impact-method { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--pw-space-3); margin: 0 0 var(--pw-space-4); }
.pw-lane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--pw-space-6); align-items: center; padding-block: var(--pw-space-4); border-top: 1px solid var(--pw-weave-line-paper); }
.pw-lane-text h3 { margin: 0 0 var(--pw-space-1); font-size: var(--pw-font-size-2xl); color: var(--pw-weave-ink); }
.pw-lane-text p { margin: 0; color: var(--pw-weave-ink-muted); }
.pw-lane-svg { width: 100%; height: auto; display: block; }
.pw-impact-note { margin: var(--pw-space-3) 0 0; font-size: var(--pw-font-size-sm); color: var(--pw-weave-ink-muted); }
.pwb-ghost { fill: none; stroke: var(--pw-slate-ink); stroke-width: 1.5; stroke-dasharray: 4 5; }
.pwb-bar { fill: var(--pw-weave-strand-evidence); transform-box: fill-box; transform-origin: left center; transform: scaleX(0.58); transition: transform 2s ease-in-out, fill 2s ease-in-out; }
.pwb-dot { fill: var(--pw-weave-ink); }
.pwb-sq { fill: var(--pw-weave-strand-decisions); stroke: var(--pw-copper-ink); stroke-width: 1; transition: opacity 1.7s ease-in-out 0.2s; }
.pwb-sq-extra { opacity: 0.16; }
.pwb-loop { fill: none; stroke: var(--pw-copper-ink); stroke-width: 2.2; stroke-dasharray: 5 4; opacity: 0.3; transition: opacity 1.7s ease-in-out 0.25s; }
.pwb-coin { fill: var(--pw-weave-strand-decisions); stroke: var(--pw-copper-ink); stroke-width: 2; transform-box: fill-box; transform-origin: center; transform: scale(0.6); transition: transform 1.8s ease-in-out 0.3s; }
.pwb-link { fill: none; stroke: var(--pw-slate-ink); stroke-width: 2.4; stroke-linecap: round; }
.pwb-link-new { stroke: var(--pw-teal-ink); transition: stroke 1.6s ease-in-out 0.5s, stroke-dasharray 1.6s ease-in-out 0.5s, stroke-width 0.6s ease; }
.pwb-node { fill: var(--pw-weave-paper); stroke: var(--pw-slate-ink); stroke-width: 2.4; }
.pwb-node-new { fill: var(--pw-weave-strand-evidence); stroke: var(--pw-teal-ink); transition: fill 1.6s ease-in-out 0.5s, stroke 1.6s ease-in-out 0.5s; }
.pw-lane-text { transition: opacity 1s ease; }
.pw-impact.is-pre .pw-lane-text { opacity: 0.7; }
.pw-impact.is-pre .pwb-bar, .pw-impact.is-pre .pwb-sq, .pw-impact.is-pre .pwb-loop, .pw-impact.is-pre .pwb-coin,
.pw-impact.is-pre .pwb-link-new, .pw-impact.is-pre .pwb-node-new { transition-duration: 0.85s; transition-delay: 0s; }
.pw-impact .pw-chip { transition: opacity 0.5s ease, background 0.5s ease; }
.pw-impact.is-live .pw-chip { opacity: 0.5; }
.pw-impact.is-live .pw-chip.is-lit { opacity: 1; background: var(--pw-teal-ink); }
.pw-lane-svg.is-final .pwb-link-new { stroke: var(--pw-weave-strand-evidence); stroke-width: 3.4; }
.pw-impact.is-pre .pwb-bar { transform: scaleX(1); fill: var(--pw-weave-strand-decisions); }
.pw-impact.is-pre .pwb-sq-extra { opacity: 1; }
.pw-impact.is-pre .pwb-loop { opacity: 1; }
.pw-impact.is-pre .pwb-coin { transform: scale(1); }
.pw-impact.is-pre .pwb-link-new { stroke: var(--pw-slate-ink); stroke-dasharray: 3 7; }
.pw-impact.is-pre .pwb-node-new { fill: var(--pw-weave-paper); stroke: var(--pw-slate-ink); }
.pw-dimensions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pw-space-4); margin-bottom: var(--pw-space-6); }
.pw-dimension { padding: var(--pw-space-4); border-radius: var(--pw-radius-lg); background: var(--pw-weave-ground-raised); color: var(--pw-weave-on-dark-muted); }
.pw-dimension h4 { margin: 0 0 var(--pw-space-1); color: var(--pw-weave-strand-knowledge); font-size: var(--pw-font-size-xl); }
.pw-dimension p { margin: 0; }
.pw-calc-line { font-size: var(--pw-font-size-xl); color: var(--pw-weave-ink); }
.pw-calc { max-width: 72ch; margin-bottom: var(--pw-space-6); }
.pw-formula { padding: var(--pw-space-2) var(--pw-space-3); border-left: 3px solid var(--pw-weave-strand-evidence); background: var(--pw-weave-mist); font-size: var(--pw-font-size-sm); font-weight: var(--pw-font-weight-semibold); }
.pw-card-dark .pw-formula { color: var(--pw-weave-ink); }
.pw-equation { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pw-space-2); font-weight: var(--pw-font-weight-semibold); color: var(--pw-weave-on-dark); }
.pw-equation span { padding: var(--pw-space-1) var(--pw-space-3); border-radius: var(--pw-radius-md); background: var(--pw-weave-ground-raised); color: var(--pw-weave-strand-knowledge); }

/* 7. Capabilities: one connected system */
.pw-capmap {
  --pw-gap-x: var(--pw-space-8); --pw-gap-y: var(--pw-space-6);
  display: grid; grid-template-columns: repeat(3, minmax(0, 252px)); justify-content: center; grid-template-rows: 1fr auto 1fr; grid-template-areas: ". model ." ". hub ." ". improve .";
  gap: var(--pw-gap-y) var(--pw-gap-x); max-width: 100%; margin: 0 auto;
}
.pw-fam { position: relative; padding: var(--pw-space-3) var(--pw-space-4); border: 1px solid var(--pw-weave-line); border-top: 3px solid var(--pw-weave-strand-process); border-radius: var(--pw-radius-md); background: var(--pw-weave-panel); align-self: center; }
.pw-fam h3 { margin: 0 0 var(--pw-space-1); font-size: var(--pw-font-size-xl); line-height: var(--pw-line-height-tight); color: var(--pw-weave-on-dark); }
.pw-fam ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: var(--pw-font-size-sm); line-height: var(--pw-line-height-snug); color: var(--pw-weave-on-dark-muted); }
.pw-fam li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pw-space-2); }
.pw-fam .pw-soon-item { gap: var(--pw-space-1); }
.pw-fam .pw-status { padding: 0 var(--pw-space-2); }
.pw-soon-item .pw-status { background: transparent; color: var(--pw-weave-on-dark-muted); border-color: var(--pw-weave-strand-process); }
.pw-fam-model { grid-area: model; align-self: end; border-top-color: var(--pw-weave-strand-process); }
.pw-fam-analyze { grid-column: 1; grid-row: 1 / 4; align-self: center; border-top-color: var(--pw-weave-strand-evidence); } /* side cards span all rows, so they never stretch the map */
.pw-fam-enable { grid-column: 3; grid-row: 1 / 4; align-self: center; border-top-color: var(--pw-weave-strand-knowledge); }
.pw-fam-improve { grid-area: improve; align-self: start; border-top-color: var(--pw-weave-strand-decisions); }
.pw-hub { grid-area: hub; display: grid; place-items: center; align-self: center; padding: var(--pw-space-4) var(--pw-space-3); border: 2px solid var(--pw-weave-strand-decisions); border-radius: var(--pw-radius-xl); background: var(--pw-weave-ground-raised); color: var(--pw-weave-on-dark); font-size: var(--pw-font-size-lg); font-weight: var(--pw-font-weight-bold); text-align: center; }
.pw-fam::after, .pw-fam::before { content: ""; position: absolute; background: var(--pw-weave-strand-process); }
.pw-fam-model::after { left: 50%; top: 100%; width: 3px; height: var(--pw-gap-y); transform: translateX(-50%); }
.pw-fam-improve::before { left: 50%; bottom: 100%; width: 3px; height: var(--pw-gap-y); transform: translateX(-50%); background: var(--pw-weave-strand-decisions); }
.pw-fam-analyze::after { left: 100%; top: 50%; height: 3px; width: var(--pw-gap-x); background: var(--pw-weave-strand-evidence); }
.pw-fam-enable::before { right: 100%; top: 50%; height: 3px; width: var(--pw-gap-x); background: var(--pw-weave-strand-knowledge); }
.pw-fam-model::before, .pw-fam-improve::after, .pw-fam-analyze::before, .pw-fam-enable::after { display: none; }
.pw-caplist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--pw-space-8); }
.pw-fam, .pw-hub { transition: opacity 0.8s ease, box-shadow 0.8s ease, transform 0.8s ease, border-color 0.8s ease; }
.pw-fam::before, .pw-fam::after { transition: opacity 0.8s ease; }
.pw-capmap.is-live .pw-fam { opacity: 0.72; }
.pw-capmap.is-live .pw-fam::before, .pw-capmap.is-live .pw-fam::after { opacity: 0.3; }
.pw-capmap.is-live .pw-fam.is-pulse { opacity: 1; }
.pw-capmap.is-live .pw-fam.is-pulse::before, .pw-capmap.is-live .pw-fam.is-pulse::after,
.pw-capmap.is-live .pw-fam.is-active::before, .pw-capmap.is-live .pw-fam.is-active::after { opacity: 1; }
.pw-capmap.is-live .pw-fam.is-active { opacity: 1; transform: translateY(-2px); box-shadow: var(--pw-shadow-3); }
.pw-capmap.is-live .pw-hub { opacity: 0.85; }
.pw-hub.is-active { opacity: 1; border-color: var(--pw-weave-strand-knowledge); box-shadow: var(--pw-shadow-3); }
.pw-caplist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--pw-space-1) var(--pw-space-3); align-items: start; padding: var(--pw-space-2) 0; border-bottom: 1px solid var(--pw-weave-line); }
.pw-cap-name { font-weight: var(--pw-font-weight-semibold); color: var(--pw-weave-on-dark); }
.pw-cap-desc { grid-column: 1 / -1; font-size: var(--pw-font-size-sm); color: var(--pw-weave-on-dark-muted); }
.pw-analysis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pw-space-5); }

/* The capability section is compact: the map is read in one glance */
#capabilities.pw-section-tight { padding-block: var(--pw-space-10); }
#capabilities .landing-section-head { margin-bottom: var(--pw-space-4); }
#capabilities .pw-capmap { margin-top: calc(-1 * var(--pw-space-8)); } /* the top row is sized by the taller bottom card; pull the map up into that slack */
#capabilities .pw-ellipsis { margin-top: var(--pw-space-4); }

/* 8. Support */
.pw-support { background: var(--pw-weave-paper); padding-block: var(--pw-space-10); }
.pw-support-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--pw-space-4); }
.pw-support-title { margin: 0; font-size: var(--pw-font-size-2xl); color: var(--pw-weave-ink); }

/* 9. Closing */
.landing-cta .landing-section-title { color: var(--pw-weave-on-dark); }
.landing-cta .btn-weave-quiet { color: var(--pw-weave-on-dark); }

@media (prefers-reduced-motion: reduce) {
  .pw-fam, .pw-hub, .pw-lane-text, .pw-impact .pw-chip, .pwg-out, .pwg-hub, .pw-weavefig-out, .pwb-bar, .pwb-sq, .pwb-loop, .pwb-coin, .pwb-link-new, .pwb-node-new,
  .pw-weave-gate, .pw-weave-block, .pw-weave-end { transition: none; }
}

@media (max-width: 1100px) {
  .landing-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .landing-login-panel { max-width: 420px; }
  .pw-proof-copy { grid-template-columns: minmax(0, 1fr); gap: var(--pw-space-4); }
  .pw-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pw-analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pw-pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .pw-how-sources li { font-size: var(--pw-font-size-xs); }
  .pw-stage-meta, .pw-columns, .pw-detail-list, .pw-caplist { grid-template-columns: minmax(0, 1fr); }
  .pw-flow-line { grid-template-columns: minmax(0, 1fr); gap: var(--pw-space-6); }
  .pw-flow-step { padding-top: 0; padding-left: var(--pw-space-12); text-align: left; }
  .pw-flow-step::before { top: calc(-1 * var(--pw-space-6)); left: var(--pw-space-4); width: 3px; height: var(--pw-space-6); }
  .pw-flow-dot { left: 0; transform: none; }
  .pw-dimensions, .pw-pipeline-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pw-lane { grid-template-columns: minmax(0, 1fr); gap: var(--pw-space-3); }
  .pw-capmap { --pw-gap-x: var(--pw-space-6); --pw-gap-y: var(--pw-space-5); }
}
@media (max-width: 860px) {
  /* The capability map stacks below this width: readable stacking beats forcing the desktop geometry. */
  .pw-capmap { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "hub" "model" "analyze" "improve" "enable"; --pw-gap-y: var(--pw-space-6); }
  .pw-fam-analyze { grid-area: analyze; align-self: stretch; }
  .pw-fam-enable { grid-area: enable; align-self: stretch; }
  .pw-fam-model, .pw-fam-improve { align-self: stretch; }
  .pw-fam::before, .pw-fam::after { display: none; }
  .pw-fam { border-left-width: 3px; }
  .pw-capmap > .pw-fam, .pw-hub { max-width: 520px; width: 100%; justify-self: center; }
  #capabilities .pw-capmap { margin-top: 0; }
}
@media (max-width: 760px) {
  /* The weave and the pipeline switch from a drawn figure to a plain, readable stack. */
  .pw-weavefig { aspect-ratio: auto; display: grid; gap: var(--pw-space-3); justify-items: center; }
  .pw-weavefig-svg { display: none; }
  .pw-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--pw-space-2); }
  .pw-pill { position: static; width: auto; transform: none; }
  .pw-weavefig-hub, .pw-weavefig-out { position: static; width: auto; transform: none; }
  .pw-weavefig-hub::before { content: "\25BE"; display: block; color: var(--pw-weave-strand-decisions); }
  .pw-weavefig-out::before { content: "\25BE"; display: block; color: var(--pw-weave-strand-decisions); margin-bottom: var(--pw-space-1); }
  .pw-weavefig-out { border: 0; background: transparent; padding: 0; }
  .pw-how-svg { display: none; }
  .pw-how-phrases { display: grid; gap: var(--pw-space-3); }
  .pw-how-phrase { position: static; width: auto; text-align: left; padding: var(--pw-space-3) var(--pw-space-4); border-left: 4px solid var(--pw-weave-strand-process); background: var(--pw-weave-mist); }
  .pw-how-2 { border-left-color: var(--pw-weave-strand-evidence); }
  .pw-how-3 { border-left-color: var(--pw-weave-strand-knowledge); }
  .pw-how-4 { border-left-color: var(--pw-weave-strand-decisions); color: var(--pw-weave-ink); }
  .pw-how-sources { position: static; width: auto; height: auto; flex-direction: row; flex-wrap: wrap; gap: var(--pw-space-2); margin: var(--pw-space-3) 0; }
  .pw-how-sources li { height: auto; line-height: var(--pw-line-height-normal); padding: var(--pw-space-1) var(--pw-space-3); border: 1px solid var(--pw-weave-line-paper); border-radius: var(--pw-radius-full); text-align: left; font-size: var(--pw-font-size-sm); }
  .pw-callouts { grid-template-columns: minmax(0, 1fr); gap: var(--pw-space-3); }
  .pw-callout-delay { margin-inline: 0; }
}
@media (max-width: 640px) {
  .pw-journey, .pw-analysis-grid, .pw-dimensions, .pw-pipeline, .pw-pipeline-five { grid-template-columns: minmax(0, 1fr); }
  .pw-card { padding: var(--pw-space-4); }
  .pw-section-tight { padding-block: var(--pw-space-8); }
  /* Narrow screens keep the flat, readable diagram in its own scroll frame; no angled scene. */
  .pw-scroll .pw-svg { min-width: 520px; }
  .pw-scroll-hint { display: block; }
  .pw-svg-text { font-size: 14px; }
  .pw-svg-note { font-size: 12px; }
  }
