/* Product Flow — The Fix visual */

.product-flow {
  --pf-cream: #f6f3ed;
  --pf-muted: #c9bfae;
  --pf-dim: #8a8276;
  --pf-line: rgba(246, 243, 237, 0.12);
  --pf-line-strong: rgba(246, 243, 237, 0.22);
  --pf-panel: #161513;
  --pf-hot: #f0a07a;
  --pf-orange: #c85a32;
  --pf-green: #6fbf8b;

  margin: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--pf-line);
  border-radius: calc(var(--r-lg) + 8px);
  background:
    radial-gradient(720px 260px at 18% -12%, rgba(200, 90, 50, 0.16), transparent 56%),
    radial-gradient(560px 220px at 92% 118%, rgba(111, 191, 139, 0.08), transparent 52%),
    linear-gradient(180deg, #141311, #100f0d);
}

.pf-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Release path ── */

.pf-path {
  display: grid;
  grid-template-columns: 1fr 22px 1fr 22px 1fr 36px 0.78fr;
  align-items: stretch;
}

.pf-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(246, 243, 237, 0.04), transparent 48%),
    var(--pf-panel);
}

.pf-card.is-hot {
  border-color: rgba(200, 90, 50, 0.5);
  background:
    linear-gradient(180deg, rgba(200, 90, 50, 0.2), rgba(200, 90, 50, 0.04) 55%, transparent),
    var(--pf-panel);
}

.pf-card.is-field {
  border-color: rgba(111, 191, 139, 0.32);
  background:
    linear-gradient(180deg, rgba(111, 191, 139, 0.12), transparent 58%),
    var(--pf-panel);
  text-align: center;
  align-items: center;
}

.pf-kicker {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-dim);
}

.pf-card.is-hot .pf-kicker { color: var(--pf-hot); }
.pf-card.is-field .pf-kicker { color: #9fd4b0; }

.pf-card h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--pf-cream);
}

.pf-card.is-hot h3 { color: var(--pf-hot); }
.pf-card.is-field h3 { margin: 0; color: #d7efe0; }

.pf-card-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--pf-muted);
}

.pf-card.is-field .pf-card-body {
  margin-top: 4px;
  max-width: 16ch;
  font-size: 0.82rem;
}

.pf-join {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-join::before {
  content: "";
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pf-line-strong), transparent);
}

.pf-join::after {
  content: "";
  position: absolute;
  right: 1px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--pf-dim);
  border-top: 2px solid var(--pf-dim);
  transform: rotate(45deg);
}

.pf-join.is-ship::before {
  background: linear-gradient(90deg, var(--pf-line-strong), rgba(111, 191, 139, 0.7));
}

.pf-join.is-ship::after { border-color: var(--pf-green); }

.pf-join-label {
  position: absolute;
  top: calc(50% - 22px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fd4b0;
  white-space: nowrap;
}

/* ── Findings drop into risk ── */

.pf-feed {
  display: grid;
  grid-template-columns: 1fr 22px 1fr 22px 1fr 36px 0.78fr;
  pointer-events: none;
}

.pf-feed span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-orange);
}

.pf-feed span:last-child { visibility: hidden; }

.pf-feed i {
  display: block;
  width: 2px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(246, 243, 237, 0.12), var(--pf-orange));
}

/* ── Risk band ── */

.pf-band {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.pf-arch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  background: #1c1a17;
}

.pf-arch h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pf-cream);
}

.pf-arch p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--pf-muted);
}

.pf-risk {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 8px 28px;
  align-items: center;
  padding: 18px 22px 16px;
  border-radius: 18px;
  border: 1px solid rgba(200, 90, 50, 0.48);
  background:
    linear-gradient(135deg, rgba(200, 90, 50, 0.2), rgba(200, 90, 50, 0.05) 52%, transparent),
    #1a1512;
  box-shadow: inset 0 1px 0 rgba(240, 160, 122, 0.14);
}

.pf-risk-copy {
  min-width: 0;
}

.pf-risk-brand {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pf-hot);
}

.pf-risk h4 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.48rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--pf-cream);
}

.pf-risk-copy > p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #e4dccf;
}

.pf-funnel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.pf-funnel-row {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr) 6.6rem;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.pf-funnel-bar {
  height: 26px;
  width: var(--w, 100%);
  justify-self: center;
  border-radius: 7px;
  background: rgba(246, 243, 237, 0.12);
  box-shadow: inset 0 0 0 1px rgba(246, 243, 237, 0.1);
}

.pf-funnel-row.is-mid .pf-funnel-bar {
  background: rgba(217, 164, 65, 0.22);
  box-shadow: inset 0 0 0 1px rgba(217, 164, 65, 0.32);
}

.pf-funnel-row.is-warn .pf-funnel-bar {
  background: rgba(143, 191, 107, 0.22);
  box-shadow: inset 0 0 0 1px rgba(143, 191, 107, 0.35);
}

.pf-funnel-row.is-hot .pf-funnel-bar {
  background: rgba(200, 90, 50, 0.38);
  box-shadow: inset 0 0 0 1px rgba(200, 90, 50, 0.5);
}

.pf-funnel-label {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--pf-cream);
  text-align: right;
}

.pf-funnel-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pf-muted);
}

@media (max-width: 1024px) {
  .product-flow { padding: 18px 14px 16px; }

  .pf-path,
  .pf-feed {
    grid-template-columns: 1fr;
  }

  .pf-join { min-height: 28px; }

  .pf-join::before {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--pf-line-strong), transparent);
  }

  .pf-join::after {
    right: auto;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .pf-join.is-ship::before {
    background: linear-gradient(180deg, var(--pf-line-strong), rgba(111, 191, 139, 0.7));
  }

  .pf-join-label {
    top: 50%;
    left: calc(50% + 16px);
    transform: translateY(-50%);
  }

  .pf-feed { display: none; }

  .pf-band,
  .pf-risk {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pf-card h3 { font-size: 1.05rem; }
  .pf-risk h4 { font-size: 1.22rem; }
  .pf-funnel-row {
    grid-template-columns: 6.1rem minmax(0, 1fr) 5.2rem;
    gap: 6px;
  }
  .pf-funnel-label { font-size: 0.74rem; }
  .pf-funnel-num { font-size: 0.62rem; }
}
