/* Shared Sales AI product workflow
 * Reuses the existing Arqen palette and typography. No JavaScript is required.
 */
.sales-workflow {
  --flow-ink: var(--navy, var(--primary, #123c35));
  --flow-accent: var(--accent, #c89b5b);
  --flow-line: color-mix(in srgb, var(--flow-ink) 20%, transparent);
  --flow-surface: var(--surface, #fff);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 34px 0 0;
  padding: 0;
  counter-reset: sales-flow;
}

.sales-workflow > li {
  position: relative;
  min-width: 0;
  counter-increment: sales-flow;
}

.sales-workflow > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 14px;
  height: 14px;
  border-top: 1.5px solid var(--flow-ink);
  border-right: 1.5px solid var(--flow-ink);
  transform: translateY(-50%) rotate(45deg);
}

.sales-workflow-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  background: var(--flow-surface);
  border: 1px solid var(--flow-line);
  border-radius: var(--radius-card, 24px);
  box-shadow: 0 10px 28px rgba(18, 60, 53, 0.06);
}

a.sales-workflow-card:hover {
  border-color: color-mix(in srgb, var(--flow-ink) 42%, transparent);
  transform: translateY(-2px);
}

.sales-workflow-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flow-accent);
}

.sales-workflow-card h3 {
  margin: 0;
  color: var(--flow-ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.sales-workflow-card p {
  margin: 0;
}

.sales-workflow-outcome {
  font-weight: 700;
  color: var(--flow-ink);
}

.sales-workflow-feature {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--flow-line);
  color: var(--flow-ink);
  font-size: 0.82rem;
  font-weight: 650;
}

.product-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--flow-ink);
  background: color-mix(in srgb, var(--flow-ink) 8%, white);
  border: 1px solid color-mix(in srgb, var(--flow-ink) 18%, transparent);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
}

.product-status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
}

.product-status[data-status="demo"] { color: #2e6657; }
.product-status[data-status="development"] { color: #705f43; }
.product-status[data-status="included"] { color: #315d75; }

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.product-actions a {
  font-weight: 650;
}

.workflow-boundary {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--flow-accent);
  background: color-mix(in srgb, var(--flow-accent) 8%, transparent);
  border-radius: 0 12px 12px 0;
  font-size: 0.9rem;
}

.workflow-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--flow-line);
  border-radius: var(--radius-card, 24px);
  background: var(--flow-surface);
}

.workflow-bridge h3,
.workflow-bridge p { margin: 0; }
.workflow-bridge p { margin-top: 8px; }

.rfq-process {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.rfq-process li {
  position: relative;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--flow-line);
  border-radius: 12px;
  background: var(--flow-surface);
  color: var(--flow-ink);
  font-size: 0.82rem;
  font-weight: 650;
}

.rfq-process li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -11px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--flow-ink);
  background: var(--flow-surface);
}

@media (max-width: 760px) {
  .sales-workflow { grid-template-columns: 1fr; gap: 28px; }
  .sales-workflow > li:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -20px;
    transform: translateX(50%) rotate(135deg);
  }
  .sales-workflow-card { padding: 20px; }
  .workflow-bridge { grid-template-columns: 1fr; gap: 16px; }
  .rfq-process { grid-template-columns: 1fr; gap: 18px; }
  .rfq-process li:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: 50%;
    bottom: -17px;
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a.sales-workflow-card { transition: transform 160ms ease, border-color 160ms ease; }
}
