/* Demo UX */
.demo-hero {
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 1.75rem;
}
.demo-hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  color: #fff;
  max-width: 18ch;
}
.demo-hero .wm-hero-lead { max-width: 36rem; }

.demo-path {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: inherit !important;
  border: 1px solid var(--ps-border);
  border-radius: 1.2rem;
  padding: 1.6rem 1.45rem;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  transition: border-color .22s, transform .22s, box-shadow .22s;
  position: relative;
  overflow: hidden;
}
.demo-path::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.18), transparent 70%);
  pointer-events: none;
}
.demo-path:hover {
  border-color: rgba(37, 211, 102, .5);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.3);
  color: inherit !important;
}
.demo-path .num {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--wa-green), var(--wa-green-deep));
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .35);
}
.demo-path h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .45rem;
  letter-spacing: -0.02em;
}
.demo-path p {
  color: var(--ps-muted);
  font-size: .92rem;
  margin-bottom: 1.15rem;
  flex: 1;
  line-height: 1.45;
}
.demo-path .cta {
  font-weight: 600;
  color: #86efac;
  font-size: .9rem;
  font-family: var(--font-display);
}

.demo-stepper {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 1.75rem;
}
.demo-step {
  flex: 1;
  min-width: 7rem;
  padding: .7rem .85rem;
  border-radius: .8rem;
  border: 1px solid var(--ps-border);
  background: rgba(255,255,255,.03);
  font-size: .78rem;
  color: var(--ps-muted);
}
.demo-step.active {
  border-color: rgba(37, 211, 102, .5);
  background: var(--wa-green-dim);
  color: #bbf7d0;
  font-weight: 600;
}
.demo-step .label {
  display: block;
  font-size: .68rem;
  opacity: .75;
  margin-bottom: .15rem;
  font-family: var(--font-display);
}

.demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .demo-split { grid-template-columns: 1fr; }
}

.demo-phone-frame {
  border: 1px solid rgba(37, 211, 102, .28);
  border-radius: 1.6rem;
  background:
    linear-gradient(160deg, rgba(7, 94, 84, .4), rgba(15, 39, 68, .95));
  padding: 1.15rem;
  min-height: 300px;
  position: relative;
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.demo-phone-frame .bar {
  height: 6px;
  width: 32%;
  margin: 0 auto .95rem;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.demo-role-chip {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--ps-border);
  background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  width: 100%;
  text-align: left;
  color: #fff;
  text-decoration: none !important;
  transition: border-color .15s, background .15s, transform .15s;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-body);
}
.demo-role-chip:hover {
  border-color: rgba(29, 140, 248, .5);
  background: rgba(29, 140, 248, .1);
  color: #fff !important;
  transform: translateY(-2px);
}
.demo-role-chip.wa:hover {
  border-color: rgba(37, 211, 102, .5);
  background: rgba(37, 211, 102, .1);
}
.demo-role-chip .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--alfa-blue-dim);
  color: #7dd3fc;
  flex-shrink: 0;
  font-size: 1.15rem;
}
.demo-role-chip.wa .icon {
  background: var(--wa-green-dim);
  color: #86efac;
}
.demo-role-chip strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.flow-decision {
  border-left: 2px solid rgba(37, 211, 102, .4);
  padding-left: 1rem;
  margin: 1rem 0 1.25rem;
}
.flow-decision .branch { margin-bottom: .85rem; }
.flow-decision .tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .2rem .55rem;
  border-radius: .35rem;
  margin-bottom: .35rem;
  font-family: var(--font-display);
}
.flow-decision .tag.no { background: rgba(239,68,68,.15); color: #fca5a5; }
.flow-decision .tag.yes { background: rgba(37,211,102,.15); color: #86efac; }

.wp-mock-shell {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #3c434a;
  box-shadow: 0 28px 70px rgba(0,0,0,.4);
}
.wp-mock-top {
  background: #1d2327;
  color: #fff;
  padding: .75rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}
.wp-mock-body {
  background: #f0f0f1;
  color: #1d2327;
  padding: 1.35rem;
  min-height: 420px;
}
.wp-mock-card {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 1.2rem;
}
.wp-sidebar-mock {
  background: #1d2327;
  color: #a7aaad;
  padding: 1rem .75rem;
  font-size: .8rem;
  min-height: 100%;
}
.wp-sidebar-mock .active {
  background: #2271b1;
  color: #fff;
  border-radius: 2px;
  padding: .35rem .5rem;
}

.demo-section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  margin-bottom: .65rem;
  font-family: var(--font-display);
}
