/* ==========================================================================
   VAAS · Plataforma · "A jornada da decisão"
   --------------------------------------------------------------------------
   Scrollytelling overview page. A single subject (an evaluated company)
   travels through the 5 modules. A sticky stage (spine + enriching dossiê)
   stays pinned while short narrative steps scroll past, each carrying a
   compact mini-mockup of the module in play.

   Through-line accent = VAAS blue. Lime marks the human decision moment,
   amber marks the re-open loop. Light, clean, white/gray surfaces.
   ========================================================================== */

.pj {
  --pj-accent: var(--vaas-blue);
  --pj-ink: var(--vaas-blue-deep);
  --pj-line: rgba(0, 11, 88, .12);
  --pj-line-soft: rgba(0, 11, 88, .07);
  --pj-card: #ffffff;
  --pj-lime: var(--vaas-lime);
  --pj-amber: #f0a020;
  --pj-stage-top: 92px;
  font-family: var(--font-sans);
  color: var(--pj-ink);
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 18%, #f7f8fb 86%, #ffffff 100%);
}

/* ---------------------------------------------------------------- Hero --- */
.pj-hero {
  position: relative;
  padding: clamp(120px, 17vh, 200px) 24px clamp(60px, 9vh, 110px);
  text-align: center;
  overflow: hidden;
}
.pj-hero__inner { max-width: 920px; margin: 0 auto; position: relative; z-index: 2; }
.pj-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pj-accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.pj-hero__eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pj-accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--pj-accent) 16%, transparent);
}
.pj-hero__title {
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.0;
  letter-spacing: -.025em;
  font-weight: 600;
  margin: 22px 0 0;
  text-wrap: balance;
}
.pj-hero__title em {
  font-style: normal;
  color: var(--pj-accent);
}
.pj-hero__sub {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: rgba(0, 11, 88, .62);
  max-width: 620px;
  margin: 26px auto 0;
  text-wrap: pretty;
}
.pj-hero__scroll {
  margin-top: clamp(46px, 7vh, 84px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(0, 11, 88, .42);
}
.pj-hero__scroll i {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--pj-accent), transparent);
  position: relative;
  overflow: hidden;
}
.pj-hero__scroll i::after {
  content: "";
  position: absolute; left: -1px; top: 0;
  width: 3px; height: 14px; border-radius: 2px;
  background: var(--pj-accent);
  animation: pj-scroll-dot 1.9s cubic-bezier(.6,0,.2,1) infinite;
}
@keyframes pj-scroll-dot { 0% { transform: translateY(-16px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }

/* faint grid backdrop */
.pj-hero__grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(var(--pj-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--pj-line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, transparent 75%);
  opacity: .8;
}

/* ----------------------------------------------------- Journey layout --- */
.pj-journey { position: relative; }
.pj-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: stretch;
}

/* ---- sticky stage ---- */
.pj-stage-col { position: relative; align-self: stretch; }
.pj-stage {
  position: sticky;
  top: var(--pj-stage-top);
  height: calc(100vh - var(--pj-stage-top) - 32px);
  min-height: 540px;
  max-height: 760px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* spine */
.pj-spine {
  background: var(--pj-card);
  border: 1px solid var(--pj-line);
  border-radius: 14px;
  padding: 20px 22px 18px;
  box-shadow: 0 1px 2px rgba(0,11,88,.04);
  flex: 0 0 auto;
}
.pj-spine__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.pj-spine__label {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(0,11,88,.42);
}
.pj-spine__count { font-family: var(--font-mono); font-size: 11px; color: var(--pj-accent); font-weight: 600; }
.pj-spine__track {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.pj-spine__rail {
  position: absolute;
  top: 11px; left: 11px; right: 11px; height: 2px;
  background: var(--pj-line);
  border-radius: 2px;
}
.pj-spine__fill {
  position: absolute;
  top: 11px; left: 11px; height: 2px;
  background: var(--pj-accent);
  border-radius: 2px;
  transition: width .55s cubic-bezier(.55,0,.1,1);
}
.pj-node {
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  cursor: pointer;
  background: none; border: 0; padding: 0;
  font-family: inherit;
}
.pj-node__dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
  border: 2px solid var(--pj-line);
  display: grid; place-items: center;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), border-color .4s, background .4s, box-shadow .4s;
  position: relative;
}
.pj-node__dot svg { width: 11px; height: 11px; opacity: 0; transition: opacity .3s; color: #fff; }
.pj-node__lbl {
  font-size: 10px;
  letter-spacing: .01em;
  color: rgba(0,11,88,.4);
  text-align: center;
  line-height: 1.15;
  max-width: 8ch;
  transition: color .3s;
}
.pj-node.is-done .pj-node__dot { background: var(--pj-accent); border-color: var(--pj-accent); }
.pj-node.is-done .pj-node__dot svg { opacity: 1; }
.pj-node.is-active .pj-node__dot {
  background: var(--pj-accent);
  border-color: var(--pj-accent);
  transform: scale(1.32);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--pj-accent) 18%, transparent);
}
.pj-node.is-active .pj-node__dot svg { opacity: 1; }
.pj-node.is-active .pj-node__lbl { color: var(--pj-ink); font-weight: 600; }
/* lime = human decision node, amber = loop node */
.pj-node[data-kind="human"].is-active .pj-node__dot,
.pj-node[data-kind="human"].is-done .pj-node__dot { background: var(--pj-lime); border-color: var(--pj-lime); }
.pj-node[data-kind="human"].is-active .pj-node__dot { box-shadow: 0 0 0 5px color-mix(in oklab, var(--pj-lime) 34%, transparent); }
.pj-node[data-kind="human"] .pj-node__dot svg { color: var(--pj-ink); }
.pj-node[data-kind="loop"].is-active .pj-node__dot,
.pj-node[data-kind="loop"].is-done .pj-node__dot { background: var(--pj-amber); border-color: var(--pj-amber); }
.pj-node[data-kind="loop"].is-active .pj-node__dot { box-shadow: 0 0 0 5px color-mix(in oklab, var(--pj-amber) 26%, transparent); }

/* ---- dossiê card ---- */
.pj-dossie {
  background: var(--pj-card);
  border: 1px solid var(--pj-line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -32px rgba(0,11,88,.30), 0 2px 6px rgba(0,11,88,.05);
  flex: 1 1 auto;
  min-height: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.pj-dossie__bar {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--pj-line-soft);
  flex: 0 0 auto;
}
.pj-dossie__dots { display: inline-flex; gap: 5px; }
.pj-dossie__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--pj-line); }
.pj-dossie__path { font-family: var(--font-mono); font-size: 11px; color: rgba(0,11,88,.5); }
.pj-dossie__live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(0,11,88,.45);
}
.pj-dossie__live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--pj-lime);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--pj-lime) 70%, transparent);
  animation: pj-pulse 2s infinite;
}
@keyframes pj-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--pj-lime) 60%, transparent);} 70% { box-shadow: 0 0 0 7px transparent;} 100% { box-shadow: 0 0 0 0 transparent;} }

.pj-dossie__head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px 16px;
  flex: 0 0 auto;
}
.pj-dossie__avatar {
  width: 44px; height: 44px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(135deg, color-mix(in oklab, var(--pj-accent) 16%, #fff), color-mix(in oklab, var(--pj-accent) 4%, #fff));
  border: 1px solid color-mix(in oklab, var(--pj-accent) 22%, transparent);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 15px;
  color: var(--pj-accent);
}
.pj-dossie__id { min-width: 0; }
.pj-dossie__name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.pj-dossie__meta { font-family: var(--font-mono); font-size: 11.5px; color: rgba(0,11,88,.5); margin-top: 2px; }
.pj-dossie__status {
  margin-left: auto; flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em;
  padding: 5px 9px; border-radius: 999px;
  border: 1px solid var(--pj-line);
  color: rgba(0,11,88,.55);
  white-space: nowrap;
  transition: all .4s;
}
.pj-dossie__status[data-tone="eval"]  { color: var(--pj-accent); border-color: color-mix(in oklab, var(--pj-accent) 30%, transparent); background: color-mix(in oklab, var(--pj-accent) 7%, #fff); }
.pj-dossie__status[data-tone="ok"]    { color: #1f7a3d; border-color: rgba(31,122,61,.3); background: rgba(31,122,61,.07); }
.pj-dossie__status[data-tone="watch"] { color: #b06a00; border-color: rgba(176,106,0,.3); background: rgba(176,106,0,.08); }

.pj-dossie__body {
  flex: 1 1 auto; min-height: 0;
  overflow: hidden;
  padding: 0 20px 18px;
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
}
.pj-dossie__scroll {
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .5s cubic-bezier(.55,0,.1,1);
}

/* a fact line that pops in as its stage activates */
.pj-fact {
  border: 1px solid var(--pj-line-soft);
  border-radius: 10px;
  padding: 11px 13px;
  background: #fcfcfe;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s, transform .5s, border-color .5s, background .5s;
}
.pj-fact.is-in { opacity: 1; transform: none; }
.pj-fact.is-new { border-color: color-mix(in oklab, var(--pj-accent) 35%, transparent); background: color-mix(in oklab, var(--pj-accent) 5%, #fff); box-shadow: 0 6px 18px -10px color-mix(in oklab, var(--pj-accent) 50%, transparent); }
.pj-fact__top { display: flex; align-items: center; gap: 8px; }
.pj-fact__src {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(0,11,88,.42);
}
.pj-fact__src b { color: var(--pj-accent); font-weight: 600; }
.pj-fact__rows { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.pj-fact__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; }
.pj-fact__row span { color: rgba(0,11,88,.55); }
.pj-fact__row b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pj-fact__row b.mono { font-family: var(--font-mono); font-size: 12.5px; }

/* grouped facts (e.g. the Datahub dossier) */
.pj-fact__groups { display: flex; flex-direction: column; gap: 11px; margin-top: 9px; }
.pj-fact__group { display: flex; flex-direction: column; gap: 6px; }
.pj-fact__group-h {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(0,11,88,.4);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--pj-line-soft);
}
.pj-fact__group .pj-fact__row { font-size: 12.5px; }

/* score gauge inside a fact */
.pj-gauge { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.pj-gauge__ring { --v: 0; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%;
  background: conic-gradient(var(--pj-accent) calc(var(--v) * 1%), var(--pj-line) 0);
  display: grid; place-items: center;
}
.pj-gauge__ring i { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; font-style: normal; color: var(--pj-ink); }
.pj-gauge__txt b { display: block; font-size: 13px; }
.pj-gauge__txt span { font-size: 12px; color: rgba(0,11,88,.55); }

.pj-fact__verdict { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px;
  font-family: var(--font-mono); font-size: 11px; padding: 4px 9px; border-radius: 999px; }
.pj-fact__verdict[data-tone="ok"] { color: #1f7a3d; background: rgba(31,122,61,.08); }
.pj-fact__verdict[data-tone="lime"] { color: var(--pj-ink); background: color-mix(in oklab, var(--pj-lime) 38%, #fff); }
.pj-fact__verdict[data-tone="amber"] { color: #9a5800; background: rgba(240,160,32,.13); }

/* fired risk rules (highlighted block in the Motor dossiê fact) */
.pj-fired {
  margin-top: 11px;
  border: 1px solid color-mix(in oklab, var(--pj-accent) 22%, transparent);
  border-radius: 10px;
  background: color-mix(in oklab, var(--pj-accent) 4%, #fff);
  padding: 10px 12px 8px;
}
.pj-fired__h {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pj-accent);
  margin-bottom: 8px;
}
.pj-fired__row { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 12.5px; }
.pj-fired__row + .pj-fired__row { border-top: 1px solid var(--pj-line-soft); }
.pj-fired__dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: #c7cbd6; }
.pj-fired__l { flex: 1 1 auto; min-width: 0; color: rgba(0,11,88,.72); }
.pj-fired__pts { flex: 0 0 auto; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; }
.pj-fired__row--ok   .pj-fired__dot { background: #1f7a3d; }
.pj-fired__row--ok   .pj-fired__pts { color: #1f7a3d; }
.pj-fired__row--warn .pj-fired__dot { background: var(--pj-amber); }
.pj-fired__row--warn .pj-fired__pts { color: #b06a00; }
.pj-fired__row--flag .pj-fired__dot { background: #d4533f; box-shadow: 0 0 0 3px rgba(212,83,63,.16); }
.pj-fired__row--flag .pj-fired__pts { color: #c2402c; }
.pj-fired__row--flag .pj-fired__l { color: var(--pj-ink); font-weight: 500; }

/* ---- scrolling steps ---- */
.pj-steps { display: flex; flex-direction: column; }
.pj-step {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 0;
}
.pj-step:first-child { min-height: 70vh; padding-top: 2vh; }
.pj-step:last-child { min-height: 78vh; }
.pj-step__inner {
  opacity: .32;
  transform: translateY(14px);
  transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.pj-step.is-active .pj-step__inner { opacity: 1; transform: none; }

.pj-step__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  color: var(--pj-accent);
  margin-bottom: 16px;
}
.pj-step__num {
  font-weight: 600;
  border: 1px solid color-mix(in oklab, var(--pj-accent) 30%, transparent);
  background: color-mix(in oklab, var(--pj-accent) 7%, #fff);
  border-radius: 6px; padding: 2px 7px; font-size: 11px;
}
.pj-step[data-kind="human"] .pj-step__eyebrow { color: #7a8a00; }
.pj-step[data-kind="human"] .pj-step__num { color: #5e6b00; border-color: color-mix(in oklab, var(--pj-lime) 60%, transparent); background: color-mix(in oklab, var(--pj-lime) 28%, #fff); }
.pj-step[data-kind="loop"] .pj-step__eyebrow { color: #b06a00; }
.pj-step[data-kind="loop"] .pj-step__num { color: #9a5800; border-color: rgba(240,160,32,.4); background: rgba(240,160,32,.1); }

.pj-step__title {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.pj-step__title em { font-style: normal; color: var(--pj-accent); }
.pj-step[data-kind="human"] .pj-step__title em { color: #6e7d00; }
.pj-step[data-kind="loop"] .pj-step__title em { color: #b06a00; }
.pj-step__sub {
  font-size: 16px; line-height: 1.55; color: rgba(0,11,88,.6);
  margin: 14px 0 0; max-width: 44ch; text-wrap: pretty;
}

/* per-step data chips: objective, text-only data points. With the mock-ups
   removed, these carry the hard facts in the (text-only) right column. */
.pj-step__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pj-step__chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .01em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--pj-accent) 24%, transparent);
  background: color-mix(in oklab, var(--pj-accent) 6%, #fff);
  color: color-mix(in oklab, var(--pj-accent) 92%, #000);
}
.pj-step[data-kind="human"] .pj-step__chip {
  border-color: color-mix(in oklab, var(--pj-lime) 60%, transparent);
  background: color-mix(in oklab, var(--pj-lime) 20%, #fff);
  color: #5e6b00;
}
.pj-step[data-kind="loop"] .pj-step__chip {
  border-color: rgba(240,160,32,.42);
  background: rgba(240,160,32,.09);
  color: #9a5800;
}

/* per-step CTA into the module detail page */
.pj-step__cta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--pj-accent) 32%, transparent);
  background: color-mix(in oklab, var(--pj-accent) 6%, #fff);
  color: var(--pj-accent);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pj-step__cta svg { width: 14px; height: 14px; flex: 0 0 auto; transition: transform .2s ease; }
.pj-step__cta:hover {
  background: color-mix(in oklab, var(--pj-accent) 12%, #fff);
  border-color: color-mix(in oklab, var(--pj-accent) 55%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -14px color-mix(in oklab, var(--pj-accent) 70%, transparent);
}
.pj-step__cta:hover svg { transform: translateX(3px); }
.pj-step[data-kind="human"] .pj-step__cta { color: #5e6b00; border-color: color-mix(in oklab, var(--pj-lime) 60%, transparent); background: color-mix(in oklab, var(--pj-lime) 22%, #fff); }
.pj-step[data-kind="human"] .pj-step__cta:hover { background: color-mix(in oklab, var(--pj-lime) 34%, #fff); border-color: color-mix(in oklab, var(--pj-lime) 80%, transparent); box-shadow: 0 10px 26px -14px color-mix(in oklab, var(--pj-lime) 80%, transparent); }
.pj-step[data-kind="loop"] .pj-step__cta { color: #9a5800; border-color: rgba(240,160,32,.42); background: rgba(240,160,32,.08); }
.pj-step[data-kind="loop"] .pj-step__cta:hover { background: rgba(240,160,32,.15); border-color: rgba(240,160,32,.7); box-shadow: 0 10px 26px -14px rgba(240,160,32,.7); }

/* ---- IA: dossiê analysis (stage) ---- */
.pj-aia { margin-top: 4px; }
.pj-aia__summary { font-size: 13px; line-height: 1.55; color: rgba(0,11,88,.72); margin: 0 0 12px; }
.pj-aia__sec { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(0,11,88,.4); margin: 0 0 7px; }
.pj-aia__findings { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.pj-aia__find { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: rgba(0,11,88,.7); line-height: 1.4; }
.pj-aia__find-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; margin-top: 5px; }
.pj-aia__find--ok .pj-aia__find-dot { background: #1f7a3d; }
.pj-aia__find--warn .pj-aia__find-dot { background: var(--pj-amber); }
.pj-aia__votes { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.pj-aia__vote { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--pj-line); color: rgba(0,11,88,.6); }
.pj-aia__vote b { font-weight: 600; color: var(--pj-ink); }
.pj-aia__vote--ok { border-color: rgba(31,122,61,.3); background: rgba(31,122,61,.06); color: #1f7a3d; }
.pj-aia__vote--ok b { color: #1f7a3d; }
.pj-aia__vote--warn { border-color: rgba(176,106,0,.3); background: rgba(240,160,32,.08); color: #9a5800; }
.pj-aia__vote--warn b { color: #9a5800; }
.pj-aia__rec { display: flex; align-items: center; gap: 10px; }
.pj-aia__rec-chip { font-family: var(--font-mono); font-size: 11.5px; padding: 6px 11px; border-radius: 999px; background: color-mix(in oklab, var(--pj-lime) 32%, #fff); color: var(--pj-ink); font-weight: 500; }
.pj-aia__conf { font-family: var(--font-mono); font-size: 11px; color: rgba(0,11,88,.5); }

/* ---- Mesa: decision simulation (stage) ---- */
.pj-deskd { margin-top: 4px; }
.pj-deskd__case { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.pj-deskd__av { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; background: color-mix(in oklab, var(--pj-accent) 16%, #fff); color: var(--pj-accent); }
.pj-deskd__info { min-width: 0; }
.pj-deskd__info b { display: block; font-size: 13px; font-weight: 600; }
.pj-deskd__info span { font-family: var(--font-mono); font-size: 11px; color: rgba(0,11,88,.5); }
.pj-deskd__acts { display: flex; gap: 9px; }
.pj-deskd__btn { flex: 1 1 0; text-align: center; font-size: 13px; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--pj-line);
  font-family: var(--font-sans); display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: all .25s ease; }
.pj-deskd__btn--deny { background: #fff; color: rgba(0,11,88,.55); }
.pj-deskd__btn--approve { background: color-mix(in oklab, var(--pj-lime) 22%, #fff); border-color: color-mix(in oklab, var(--pj-lime) 55%, transparent); color: var(--pj-ink); font-weight: 600; }
.pj-deskd__btn--approve.is-pressed { background: var(--pj-lime); border-color: var(--pj-lime); transform: scale(.97); box-shadow: 0 0 0 4px color-mix(in oklab, var(--pj-lime) 30%, transparent); }
.pj-deskd__btn--approve.is-done { background: var(--pj-lime); border-color: var(--pj-lime); }
.pj-deskd__btn--approve.is-done ~ .pj-deskd__btn--deny,
.pj-deskd__btn--deny:has(~ .pj-deskd__btn--approve.is-done) { opacity: .4; }
.pj-deskd__check { font-weight: 700; }
.pj-deskd__result { margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; color: rgba(0,11,88,.6);
  opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.pj-deskd__result.is-in { opacity: 1; transform: none; }
.pj-deskd__result b { color: var(--pj-ink); }

/* reopen / loop hook inside the Central monitoring fact */
.pj-monh__reopen { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(240,160,32,.32); background: rgba(240,160,32,.07); }
.pj-monh__reopen-ico { width: 24px; height: 24px; border-radius: 7px; flex: 0 0 auto; display: grid; place-items: center; background: rgba(240,160,32,.18); color: #9a5800; }
.pj-monh__reopen-ico svg { width: 14px; height: 14px; }
.pj-monh__reopen-txt b { display: block; font-size: 12.5px; font-weight: 600; color: var(--pj-ink); }
.pj-monh__reopen-txt span { font-size: 12px; color: rgba(0,11,88,.6); }

/* ---- Doc AI: extraction result (stage) ---- */
.pj-extract { margin-top: 4px; }
.pj-extract__h { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--pj-accent); margin-bottom: 8px; }
.pj-extract__rows { display: flex; flex-direction: column; }
.pj-extract__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--pj-line-soft); font-size: 13px; }
.pj-extract__row:last-child { border-bottom: 0; }
.pj-extract__row span { color: rgba(0,11,88,.55); }
.pj-extract__row b { font-weight: 600; text-align: right; }
.pj-extract__note { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--pj-accent); }
.pj-extract__note::before { content: "→"; }

/* ---- Mesa: AI brief line above the decision sim (stage) ---- */
.pj-aibrief { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in oklab, var(--pj-accent) 20%, transparent); background: color-mix(in oklab, var(--pj-accent) 4%, #fff); }
.pj-aibrief__ico { width: 24px; height: 24px; border-radius: 7px; flex: 0 0 auto; display: grid; place-items: center; background: color-mix(in oklab, var(--pj-accent) 12%, #fff); color: var(--pj-accent); }
.pj-aibrief__ico svg { width: 14px; height: 14px; }
.pj-aibrief__txt { min-width: 0; }
.pj-aibrief__txt > span { font-size: 12.5px; color: rgba(0,11,88,.6); }
.pj-aibrief__rec { margin-top: 4px; font-size: 12.5px; }
.pj-aibrief__rec b { font-weight: 600; color: var(--pj-ink); }
.pj-aibrief__rec i { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: rgba(0,11,88,.5); margin-left: 4px; }

/* ---- Central: risk-over-time history + sparkline (stage) ---- */
.pj-monh { margin-top: 4px; }
.pj-monh__charth { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pj-monh__charth > span:first-child { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(0,11,88,.4); }
.pj-monh__trend { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 10.5px; color: #b06a00; }
.pj-monh__trend svg { width: 11px; height: 11px; }
.pj-monh__spark { width: 100%; height: 56px; display: block; margin-bottom: 14px; overflow: visible; }
.pj-monh__spark-fill { fill: rgba(240,160,32,.12); }
.pj-monh__spark-line { fill: none; stroke: var(--pj-amber); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pj-monh__spark-dot { fill: var(--pj-amber); stroke: #fff; stroke-width: 1.5; }
.pj-monh__listh { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(0,11,88,.4); margin-bottom: 6px; }
.pj-monh__list { display: flex; flex-direction: column; }
.pj-monh__row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--pj-line-soft); }
.pj-monh__row:last-child { border-bottom: 0; }
.pj-monh__date { font-family: var(--font-mono); font-size: 11px; color: rgba(0,11,88,.5); width: 56px; flex: 0 0 auto; }
.pj-monh__score { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--pj-ink); flex: 1 1 auto; }
.pj-monh__risk { flex: 0 0 auto; font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--pj-line); }
.pj-monh__risk--ok { color: #1f7a3d; border-color: rgba(31,122,61,.3); background: rgba(31,122,61,.06); }
.pj-monh__risk--warn { color: #b06a00; border-color: rgba(176,106,0,.3); background: rgba(240,160,32,.08); }
.pj-monh__row--latest .pj-monh__date { color: var(--pj-ink); font-weight: 600; }
.pj-monh__freq { margin-top: 11px; font-family: var(--font-mono); font-size: 10.5px; color: rgba(0,11,88,.5); display: flex; align-items: center; gap: 7px; }
.pj-monh__freq::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pj-lime); flex: 0 0 auto; }

/* ------------------------------------------------------------- outro --- */
.pj-outro {
  background: var(--vaas-blue-deep);
  color: #fff;
  padding: clamp(80px, 12vh, 150px) 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pj-outro__inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.pj-outro__eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--vaas-lime); }
.pj-outro__title { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.02em; font-weight: 600;
  margin: 20px 0 0; text-wrap: balance; }
.pj-outro__title em { font-style: normal; color: var(--vaas-lime); }
.pj-outro__modules {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 40px auto 0; max-width: 760px;
}
.pj-outro__mod {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  font-size: 14px; color: rgba(255,255,255,.9);
  transition: border-color .2s, background .2s, transform .2s;
}
.pj-outro__mod:hover { border-color: var(--vaas-lime); background: rgba(255,255,255,.07); transform: translateY(-2px); }
.pj-outro__mod b { font-weight: 600; }
.pj-outro__mod span { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.5); }
.pj-outro__grid { position: absolute; inset: 0; z-index: 1; opacity: .5;
  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: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 78%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 78%); }

/* ----------------------------------------------------- accent variants -- */
.pj[data-accent="lime"] { --pj-accent: #7d9b00; }
.pj[data-accent="deep"] { --pj-accent: #000b58; }

/* stage side (tweak): mirror the two journey columns */
.pj[data-stage="right"] .pj-stage-col { order: 2; }
.pj[data-stage="right"] .pj-steps { order: 1; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .pj-step__inner { opacity: 1 !important; transform: none !important; }
  .pj-mon__sweep, .pj-hero__scroll i::after, .pj-dossie__live::before { animation: none !important; }
  .pj-spine__fill, .pj-node__dot, .pj-fact { transition: none !important; }
}

/* --------------------------------------------------------- responsive --
   Mobile reflow: the "example" (spine + live dossiê) pins to the top and
   evolves as you scroll; each step's explanation reads below it in a
   compact, text-first form. The heavy per-step mock-ups are dropped here —
   the pinned dossiê already carries the visual, and the steps stay objective.
   ------------------------------------------------------------------------ */
@media (max-width: 980px) {
  .pj-grid { display: block; padding: 0 18px; }
  .pj-stage-col { position: sticky; top: 56px; z-index: 5; }
  .pj-stage {
    position: static;
    height: auto; min-height: 0; max-height: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 14px;
    background: linear-gradient(180deg, #f7f8fb 0%, #f7f8fb 86%, rgba(247,248,251,0) 100%);
  }
  .pj-spine { padding: 14px 14px 12px; border-radius: 12px; }
  .pj-spine__head { margin-bottom: 12px; }
  .pj-node__lbl { display: none; }
  .pj-node__dot { width: 18px; height: 18px; }

  /* Live dossiê: tall enough that the active fact reads in full instead of
     being clipped to a sliver, but balanced so the steps below still breathe. */
  .pj-dossie { max-height: clamp(236px, 36vh, 312px); }
  .pj-dossie__head { padding: 14px 16px 12px; }
  .pj-dossie__body {
    padding-bottom: 14px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 90%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 90%, transparent 100%);
  }

  /* Steps: concise, text-first explanations with an even vertical rhythm.
     Mock-ups are hidden on mobile; compact data chips carry the hard facts. */
  .pj-steps { margin-top: 8px; }
  .pj-step {
    min-height: 0 !important;
    padding: 30px 0 32px;
    border-top: 1px solid var(--pj-line-soft);
  }
  .pj-step:first-child { border-top: 0; padding-top: 16px; }
  .pj-step:last-child { padding-bottom: 40px; }
  .pj-step__inner { opacity: 1; transform: none; }
  .pj-step__eyebrow { margin-bottom: 12px; }
  .pj-step__title { font-size: clamp(23px, 6.2vw, 30px); }
  .pj-step__sub { font-size: 15.5px; line-height: 1.5; margin-top: 12px; max-width: none; }
  .pj-step__cta { margin-top: 18px; }
  .pj-step__chips { gap: 7px; margin-top: 16px; }
}

@media (max-width: 560px) {
  .pj-dossie__status { display: none; }
}
